I brought this old thread to the surface because Yosemite introduced a change : before it,
set theFolder to "" & "~/Pictures/APOD ƒ/"
set theFolder to my convertTildePathToHfs(theFolder)
set theFolder to (choose file default location alias theFolder)
on convertTildePathToHfs(aPath)
set pp to POSIX file (do shell script "echo " & quoted form of aPath)
log pp
tell application "System Events"
path of disk item (pp as text)
end tell
return result
end convertTildePathToHfs
or, if we need only one conversion we may use :
set theFolder to "" & "~/Pictures/APOD ƒ/"
POSIX file (do shell script "echo " & quoted form of theFolder)
tell application "System Events" to set theFolder to path of disk item (result as text)
set theFolder to (choose file default location alias theFolder)
As far as I know, it's only with Yosemite that the use of echo is not required.
Yvan KOENIG (VALLAURIS, France) lundi 1 décembre 2014 15:49:39