• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Stuffit Deluxe not applescriptable in 10.6.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Why must I double a command line to set the background picture?
  • Next by Date: Ability to run multiple scripts at once
  • Previous by thread: Re: Stuffit Deluxe not applescriptable in 10.6.2
  • Next by thread: Re: Word 2008 text range from Message 3 of AppleScript-Users Digest, Vol 7, Issue 88
  • Index(es):
    • Date
    • Thread