• 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: Axel Luttgens <email@hidden>
  • Date: Thu, 31 Jul 2008 16:36:14 +0200

Le 29 juil. 08 à 19:56, Luther Fuller a écrit :

[...]
In either case, in both OSs, I get the proper colon delimited and terminated string, without testing the last character. I'm wondering if the colon terminal test is even necessary. [...]

Yes, you're right: the way you devised your code, the test isn't needed.

In fact, there is something at work that I never noticed.

As a reminder, one of the thread's theme went around the fact that, in Tiger, Mail returns a string containing the posix path to an account directory, instead of a file reference as stated in the dictionary.
Moreover, that path comes without a trailing slash.


So, assuming the "Applications" folder exists, let's try this one:

	set X to "/Applications"
	(POSIX file X) as text
	--> "BootDisk:Applications"
	tell application "Mail" to get (POSIX file X) as text
	--> "BootDisk:Applications:"

The above is true in both Tiger and Leopard; moreover, it holds for applications such as TextEdit, Safari, iTunes... as well.

Such discrepancies might prove somewhat problematic, if only from a logical point of view.


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

  • Prev by Date: Read XMP metadata from a JPEG
  • Next by Date: Re: Read XMP metadata from a JPEG
  • Previous by thread: Re: slash path to alias
  • Next by thread: Re: slash path to alias
  • Index(es):
    • Date
    • Thread