• 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: Need help writing some AppleScripts!!! Please help!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Need help writing some AppleScripts!!! Please help!
      • From: Jason Bourque <email@hidden>
References: 
 >Re: Need help writing some AppleScripts!!! Please help! (From: David Nelson <email@hidden>)

  • Prev by Date: Change IP address in OSX
  • Next by Date: Change mail.app username, account name and email address
  • Previous by thread: \n appended
  • Next by thread: Re: Need help writing some AppleScripts!!! Please help!
  • Index(es):
    • Date
    • Thread