• 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
A simple script.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A simple script.


  • Subject: A simple script.
  • From: "Luis E. Hernandez" <email@hidden>
  • Date: Fri, 10 Oct 2003 23:43:24 -0400

Hi, list.


I'm quite new to scripting, so I'd gratefully appreciate the input:
I wrote (recorded, rather) a little script that'll keep a folder clean using
AppleScript v.1.1.3 (I'm running OS8.6 on a Mac8100/100) and saved it as an
application. It goes thus, as copied and pasted from Script Editor (line
numbers were added here for reference in this post):


1 tell application "Finder"
2 activate
3 select folder "To Print"
4 open selection
5 select files of folder "To Print" of startup disk
6 delete selection
7 empty trash
8 close container window of folder "To Print" of startup disk
9 end tell

Now someone on the network starts storing aliases, folders and what have you
in this folder so the app will inevitably leave things other than files in the
folder. My question is: how do you modify line 5 to get it to include folders,
apps, aliases, etc. or just plainly any items for that matter?



Thanks!

Luis E. Hernandez
A R C H I T E C T
_______________________________________________
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: A simple script.
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Re: application file of remote app broken
  • Next by Date: Re: A simple script.
  • Previous by thread: Re: OSX help
  • Next by thread: Re: A simple script.
  • Index(es):
    • Date
    • Thread