filtering alias files by original item
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
**********************************