AppleScript名:POSIX pathからAliasへの戻し方(解説つき) |
set a to choose folder log {"alias", a} –> (*alias, alias Cherry:Users:me:Desktop:*) set aP to POSIX path of a log {"POSIX path", aP} –> (*POSIX path, /Users/me/Desktop/*)–shell commandに渡すときにはパスにquoted form ofを付ける必要アリ。Cocoaに渡すときにはquoted form ofは不要 set aF to POSIX file aP log {"file", aF} –> (*file, file Cherry:Users:me:Desktop:*) set anAlias to aF as alias log {"alias", anAlias} –> (*alias, alias Cherry:Users:me:Desktop:*) |
More from my site
(Visited 133 times, 1 visits today)