• 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: slash path to alias
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: slash path to alias


  • Subject: Re: slash path to alias
  • From: email@hidden
  • Date: Thu, 31 Jul 2008 19:04:27 +0200

At 16:36 +0200 31/07/08, Axel Luttgens wrote:
	set X to "/Applications"
	(POSIX file X) as text
	--> "BootDisk:Applications"
	tell application "Mail" to get (POSIX file X) as text
	--> "BootDisk:Applications:"

It's more CPU but if I do want to be sure that a folder gets the end ":" I coerce the alias, not the file:


((posix file x) as alias) as text

Emmanuel
_______________________________________________
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: 
 >Re: slash path to alias (From: Luther Fuller <email@hidden>)
 >Re: slash path to alias (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: slash path to alias
  • Next by Date: Re: shell script to change permissions
  • Previous by thread: Re: slash path to alias
  • Next by thread: Re: reading a property list item
  • Index(es):
    • Date
    • Thread