AppleScript名:指定ファイルのフルパスから拡張子を削除した文字列を取得する |
use AppleScript version "2.4" use scripting additions use framework "Foundation" set a to choose file set aPath to POSIX path of a set pathString to current application’s NSString’s stringWithString:aPath set newPath to pathString’s stringByDeletingPathExtension() –> (NSString) "/Users/me/Desktop/aTest" |
More from my site
(Visited 41 times, 1 visits today)