• 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: 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

  • Prev by Date: Re: Open a linked jpeg in Photoshop instead of the browser itself
  • Next by Date: Re: Unable to open Word Mac documents in Hidden state
  • Previous by thread: Stuffit Deluxe not applescriptable in 10.6.2
  • Next by thread: Re: Stuffit Deluxe not applescriptable in 10.6.2
  • Index(es):
    • Date
    • Thread