• 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
Urgent Need help with Script!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Urgent Need help with Script!


  • Subject: Urgent Need help with Script!
  • From: Dan Ball <email@hidden>
  • Date: Wed, 03 Jul 2002 20:21:49 -0400

Hi everyone,

I need help with a script, I am running OS 9.2.2 on G4 400mhz computers with
FoolProof 3.5.3. I am having a problem with students some how getting files
onto the desktop. The only things that should be on the Desktop are
Macintosh HD, Accel-a-Writer 3G Pool, and the launcher. How can I make an
AppleScript to delete any other things on the Desktop if they are there? I
had some help before but they couldn't get it to work, here is the script
that was send to me:

repeat with x in list folder (path to desktop folder)
if name of x is not in {"Macintosh HD", "Accel-a-Writer 3G Pool",
"Launcher"} then move x to trash
end repeat

Looks like it should work but I'm not sure about the (path to desktop
folder) is that supposed to be worded like that or am I supposed to type in
the path to the desktop folder? I didn't see the hidden Desktop Folder on
the root of the HD like it used to be. Did apple change this in 9.2.2? I
just want the script to work to delete any items on the desktop that aren't
named what I listed above.

Can anyone help? Please!! Thanks in advance! Oh and I am a newbie so be
aware of that!!

Thanks,

DB


--__--__--__--__--
_______________________________________________
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.

  • Prev by Date: Eudora Filter
  • Next by Date: Re: a new user question
  • Previous by thread: Re: Eudora Filter
  • Next by thread: Re: Urgent Need help with Script!
  • Index(es):
    • Date
    • Thread