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: John Mitchell <email@hidden>
- Date: Mon, 15 Feb 2010 08:27:46 +1100
Tks for cumulative advice
script, now Carbon app, works completely with correct POSIX form
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
John
-------------------------------------------------------------------------
CQR Pty Ltd
1005/2 Dind Street, Milsons Point, NSW 2061 Australia
ABN: 45 001 785 191 NSW ARBN: 3605
Email: email@hidden Mob: +61 410 318 131
Skype:jrmitchell
Tel: +61 (2) 9922 3785 Fax: +61 (2) 9929 4035
_______________________________________________
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