AppleScript名:POSIX Pathから拡張子を外して、別の拡張子に付け替える |
— Created 2017-11-05 by Takaaki Naganoya — 2017 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" set aPath to "/Users/me/Desktop/test2.scpt" set pathString to current application’s NSString’s stringWithString:aPath set newPath to ((pathString’s stringByDeletingPathExtension())’s stringByAppendingPathExtension:"scptd") as string –> "/Users/me/Desktop/test2.scptd" |
More from my site
(Visited 32 times, 1 visits today)