Re: Need help writing some AppleScripts!!! Please help!
Re: Need help writing some AppleScripts!!! Please help!
- Subject: Re: Need help writing some AppleScripts!!! Please help!
- From: Christopher Nebel <email@hidden>
- Date: Fri, 17 May 2002 15:38:37 -0700
On Friday, May 17, 2002, at 01:05 PM, David Nelson wrote:
-- Get a list of alias references to all the stuff on the desktop.
set desktopItems to every item of desktop as alias list
-- Loop through all the alias references in the list desktopItems
adding those
-- that are not found in the list exclusionList and whose kind is not
Volume to a
-- new list called desktopClutter.
set desktopClutter to {}
repeat with i in desktopItems
if ((name of contents of i) is not in exclusionList) and ((kind of
contents of i) is not "Volume") then
set desktopClutter to (desktopClutter & contents of i)
end if
end repeat
Alternatively:
get every item of the desktop whose kind is not "Volume" and name
is not in exclusionList
Works quite nicely in 10.1.4; haven't tried it in 9.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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.