AppleScript名:指定ファイルからカスタムアイコンを削除する |
— Created 2015-10-19 by Takaaki Naganoya — 2015 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" use framework "AppKit" set aFile to POSIX path of (choose file with prompt "Choose Target File") –設定対象のファイル set aSW to current application’s NSWorkspace’s sharedWorkspace() aSW’s setIcon:(missing value) forFile:aFile options:0 |
More from my site
(Visited 38 times, 1 visits today)