• 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: Error-trapping alias properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error-trapping alias properties


  • Subject: Re: Error-trapping alias properties
  • From: Andy Wylie <email@hidden>
  • Date: Sat, 30 Mar 2002 00:09:17 +1200

on 29/3/02 4:43 PM, Paul Skinner at email@hidden wrote:

> On Thursday, March 28, 2002, at 06:49 PM, Andy Wylie wrote:
>> The key seems to be
>> 'as string'
>
in the context of '(someFile as string) as alias' in an example check which
worked OMM.
>
> Anything that tries to use the alias fails to resolve it and errors out.
>
so can't you resolve it using the 3 examples I posted?
>
> The odd thing is that the finder doesn't properly 'break' the alias when
> the original item is deleted.
>
finder?? I don't see any reference

> --script saved as an application
> property someFile : ""
> try
> someFile as alias
> on error
> set someFile to choose file
> end try
> display dialog (((class of someFile) as text) & " \"" & someFile as
> text) & "\""
> --end script

OMM (OS 8.6 AS 1.3.7) strings are happily coerced to aliases ("" as alias is
also path to me in some environments) so I must use 'property someFile :
missing value' to get error.


_____________________________ Andy
_______________________________________________
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: 
 >Re: Error-trapping alias properties (From: Paul Skinner <email@hidden>)

  • Prev by Date: Re: Error-trapping alias properties
  • Next by Date: Re: Error-trapping alias properties
  • Previous by thread: Re: Error-trapping alias properties
  • Next by thread: Re: Error-trapping alias properties
  • Index(es):
    • Date
    • Thread