• 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: "a reference to"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "a reference to"


  • Subject: Re: "a reference to"
  • From: Luther Fuller <email@hidden>
  • Date: Mon, 7 Jan 2008 10:02:42 -0600

I wonder if my experience with references is applicable here. Once upon a time, some years ago, I would often get errors of the form "The Finder does not understand a reference ...". I soon noticed that using an alias avoided the problem.

Whenever writing AppleScript for the Finder, I began using aliases exclusively, avoiding using references, and I ceased getting those pesky errors. I could write ...

	set fileAlias to ( ... ) as alias

and use 'fileAlias' without any problem.

Recently, I have been getting errors again. There are some Finder commands that now require a reference and error with an alias. I don't recall an example at the moment, but I have encountered situations where using 'fileAlias' would error and require use of the reference 'folder fileAlias' or 'item fileAlias'.

Has something in AppleScript changed recently?

_______________________________________________
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: 
 >"a reference to" (From: Michelle Steiner <email@hidden>)
 >Re: "a reference to" (From: has <email@hidden>)
 >Re: "a reference to" (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: "a reference to"
  • Next by Date: Re: "a reference to"
  • Previous by thread: Re: "a reference to"
  • Next by thread: Re: "a reference to"
  • Index(es):
    • Date
    • Thread