Re: I made a nightmare
Re: I made a nightmare
- Subject: Re: I made a nightmare
- From: Christopher Stone <email@hidden>
- Date: Wed, 09 Dec 2015 09:06:35 -0600
On Dec 09, 2015, at 07:46, Yvan KOENIG <email@hidden> wrote:
I’ running under 10.11.2
I try to run this simple script : ______________________________________________________________________
Hey Yvan,
I don't know if this is different behavior or not, but perhaps someone still on Yosemite or earlier can check.
Here we're accessing the posix path property of a disk item:
set f to ((path to desktop as text) & "formoosmahna:") tell application "System Events" POSIX path of alias f --> WORKS POSIX path of item f --> WORKS POSIX path of f --> FAILS end tell
Here we're coercing an HFS path string to a posix path string:
set f to ((path to desktop as text) & "formoosmahna:") POSIX path of f --> WORKS
<shrug>
-- Take Care, Chris __________________________________________________________________ { MacBookPro6,1 · 2.66 GHz Intel Core i7 · 8GB RAM · OSX 10.11.2 }
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden