• 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: Path string interpretation with 'as alias'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Path string interpretation with 'as alias'


  • Subject: Re: Path string interpretation with 'as alias'
  • From: Emmanuel <email@hidden>
  • Date: Wed, 18 Jun 2003 17:29:36 +0200

At 3:49 PM +0100 18/06/03, Nigel Garvey wrote:
> try
> pathString as alias
> on error
> -- The folder doesn't exist
> end try
>
>I want it to run on any system and to differentiate between files and
>folders, but it seems that the behaviour of 'as alias' has changed
>between 9.2.2 and 10.2.6 with regard to how rigidly trailing colons are
>observed:

I would have said that I have not the problem that you say, but I rather use:

> try
> alias pathString
> on error
> -- The folder doesn't exist
> end try

(One problem with that - you know - is that on OS 8&9 alias "" or even alias ":" is fine.)

Of course sooner or later you hit the problem of packages, which are files whose path ends with colon.

Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Path string interpretation with 'as alias' (From: Nigel Garvey <email@hidden>)

  • Prev by Date: Re: Why save text item delimiters? Philosophical question....
  • Next by Date: Re: Why save text item delimiters? Philosophical question....
  • Previous by thread: Path string interpretation with 'as alias'
  • Next by thread: Re: Path string interpretation with 'as alias'
  • Index(es):
    • Date
    • Thread