开发者

Make new applescript in selected folder

开发者 https://www.devze.com 2023-01-20 22:03 出处:网络
How do I use AppleScript/Automator to make a service that\'ll make an empty AppleScript file in the selected folde开发者_JAVA技巧r?You want to use the command line utility osacompile. The following wi

How do I use AppleScript/Automator to make a service that'll make an empty AppleScript file in the selected folde开发者_JAVA技巧r?


You want to use the command line utility osacompile. The following will create a blank applescript on your desktop called "test.scptd"

set applescriptCode to ""
set applescriptPath to (path to desktop as text) & "test.scptd"

do shell script "echo " & applescriptCode & " | osacompile -o " & quoted form of POSIX path of applescriptPath
0

精彩评论

暂无评论...
验证码 换一张
取 消