チルダ入りのPOSIX pathをCocoaの機能を用いてフルパスに展開するAppleScriptです。
AppleScript名:チルダ入りパス展開 |
use AppleScript version "2.4" use scripting additions use framework "Foundation" set bPath to "~/Desktop" set pathString to current application’s NSString’s stringWithString:bPath set newPath to pathString’s stringByExpandingTildeInPath() as string –> "/Users/me/Desktop" |
More from my site
(Visited 49 times, 1 visits today)