• 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: Beginners drop folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Beginners drop folder


  • Subject: Re: Beginners drop folder
  • From: Emmanuel <email@hidden>
  • Date: Wed, 27 Feb 2002 14:24:04 +0100

At 1:44 PM +0100 27/2/02, John McMillan wrote:
>
>Can someone give me advice, direction or recommend a good beginners book to
>help with the following:-
>
>I want to create a droplet or drop folder (if that9s the correct description
>for it) onto which operators can drop a folder which according to the
>current day (Monday Tuesday etc) will place a copy of this folder into an
>appropriately named folder (Monday Tues etc) on an external HD. This all
>being carried out on Mac's running various OS9.

The droplet seems to me the way to go - you would name it something like
"Store it". The user would drop one file / several files / a folder of
files / folders of folders of ... of files onto it (you have to decide
about that).

An applet is like a normal application, when you launch it it runs, except
that when it runs it actually runs a script that you can edit with Script
Editor.

A droplet is the same, except that in addition when you drop a file on its
icon it will execute its "open" handler - a handler that you will provide
with Script Editor.

A sketch of your droplet could be:

------------------------------------- untested
on StoreOne(theFilePath)
set theDay to weekday of (current date) as text
set theFolderPath to "External HD:" & theDay & ":"
tell application "Finder" -- handling files is Finder's job
move (alias theFilePath) to (alias theFolderPath)
end tell
end StoreOne

on open theListOfFiles -- is that always a list, even when you drop one file?
repeat with theFile in theListOfFiles
-- many lines here to retrieve individual files
-- out of theListOfFiles, considering the list
-- can contain folders, aliases, volumes ...
StoreOne(theFilePath)
end repeat
end open
-------------------------------------

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

References: 
 >Beginners drop folder (From: John McMillan <email@hidden>)

  • Prev by Date: Can I make this work without using Internet Explorer...
  • Next by Date: Re: opening parent folder....
  • Previous by thread: Beginners drop folder
  • Next by thread: Can I make this work without using Internet Explorer...
  • Index(es):
    • Date
    • Thread