Re: Stuffit Deluxe not applescriptable in 10.6.2
Re: Stuffit Deluxe not applescriptable in 10.6.2
- Subject: Re: Stuffit Deluxe not applescriptable in 10.6.2
- From: has <email@hidden>
- Date: Thu, 11 Feb 2010 12:01:50 +0000
John Mitchell wrote:
> after some mods it works, and I would appreciate your feedback on why:
>
> my src and dest paths have been of this form
>
> mitchPro:Users:johnm:Documents:OfficeDB:Development:Databases:
>
> in this form it failed, but worked when I deleted the diskname (or is
> it the computer name) and change the delimeter from : to /
> [...]
Correct way to convert an HFS path string to a POSIX path string:
set hfs_path to "mitchPro:Users:johnm:Documents:OfficeDB:Development:Databases:"
set posix_path to POSIX path of file hfs_path
--> "/Users/johnm/Documents/OfficeDB/Development/Databases/"
Or, if you already have an 'alias' object:
set file_alias to alias "mitchPro:Users:johnm:Documents:OfficeDB:Development:Databases:"
set posix_path to POSIX path of file_alias
--> "/Users/johnm/Documents/OfficeDB/Development/Databases/"
HTH
Regards
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net
_______________________________________________
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