Re: POSIX path in Lion
Re: POSIX path in Lion
- Subject: Re: POSIX path in Lion
- From: Christopher Stone <email@hidden>
- Date: Tue, 16 Aug 2011 21:47:11 -0500
On Aug 16, 2011, at 16:08, Luther Fuller wrote: My script contains this line of code which has been working correctly in previous systems for years ...
set sourcePath to (quoted form of POSIX path of fileAlias)
I just spent two hours trying to discover why I was getting a -1700 error in Lion. Once I narrowed my search to a particular small handler, I finally tried replacing the line, above, with this ...
set sourcePath to (quoted form of POSIX path of (fileAlias as text))
Which, finally, fixed my script! ______________________________________________________________________
Hey Luther,
Odd. This runs flawlessly on my Lion system in Script Debugger, Smile, and Applescript Editor.
-- Best Regards, Chris
repeat 20 times try
set fileAlias to alias "Thor:Users:chris:Downloads:R-2.13.1.pkg"
set sourcePath to (quoted form of POSIX path of fileAlias)
log (do shell script "xattr " & sourcePath) & return
on error errMsg number errNum set sep to "==============================" set e to sep & return & "Error: " & errMsg & return & sep & return ¬ & "Error Number: " & errNum & return & sep beep e # display dialog e end try end repeat
|
_______________________________________________
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