• 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
filtering alias files by original item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

filtering alias files by original item


  • Subject: filtering alias files by original item
  • From: Kai Edwards <email@hidden>
  • Date: Sun, 13 Jan 2002 19:11:00 +0100

I'm having difficulty figuring out why the last line of this script ('set
filteredList...') doesn't return the expected value:

-- START SCRIPT --------------------------------

-- (at least 1 alias file needs to be in the startup items folder)

tell application "Finder"
set startupFolder to startup items folder
set aliasList to startupFolder's alias files
if aliasList  {} then
set alias1 to original item of item 1 of aliasList
set filteredList to startupFolder's alias files whose original item = alias1
end if
end tell

-- END SCRIPT --------------------------------

The script doesn't do anything useful by itself of course - but it does test
the part that's not going to plan in a larger script.

In theory, I expected the 'set filteredList...' command to return the same
value as <item 1 of aliasList> - but instead it results in an empty list.

Where am I going wrong?

--

**********************************
Kai Edwards Creative Resources
1 Compton Avenue Brighton UK
Telephone +44 (0)1273 326810
**********************************


  • Prev by Date: Re: Differentiating between "A1", "A12", "A13"
  • Next by Date: Re: Need rope for SOAP
  • Previous by thread: Re: URL Access Scripting [Off list]
  • Next by thread: Re: filtering alias files by original item
  • Index(es):
    • Date
    • Thread