• 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: Scripting Filepaths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Filepaths


  • Subject: Re: Scripting Filepaths
  • From: Ronald Hofmann <email@hidden>
  • Date: Fri, 31 Jul 2009 00:02:32 +0200

As far as I know ~ is a feature of bash shell. Not sh.

Gruss, Ronald Hofmann
---

Am 30.07.2009 um 23:54 schrieb Chris Page <email@hidden>:

On Jul 29, 2009, at 5:21 PM, Jon Rosen wrote:

This works fine: open POSIX file "/Users/admin/Desktop/Sheaffer Flattop.png"

This does not: open POSIX file "~/Desktop/Sheaffer Flattop.png"

I don't understand why "~" doesn't work with AppleScript filepaths.

"~" is a feature of shells, not a feature of POSIX paths. Shells expand "~" to construct the full path, then pass it to commands.


--
Chris Page

The other, other AppleScript Chris

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden
_______________________________________________
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
References: 
 >Scripting Filepaths (From: Jon Rosen <email@hidden>)
 >Re: Scripting Filepaths (From: Chris Page <email@hidden>)

  • Prev by Date: Re: Automating authorization dialog boxes for keychain certificate permission changes
  • Next by Date: Re: Unwanted dialog if mounting fails
  • Previous by thread: Re: Scripting Filepaths
  • Next by thread: Re: Automating authorization dialog boxes for keychain certificate permission changes
  • Index(es):
    • Date
    • Thread