RE: Folder action -- attaching script to a folder
RE: Folder action -- attaching script to a folder
- Subject: RE: Folder action -- attaching script to a folder
- From: Hellum Timothy <email@hidden>
- Date: Fri, 1 Jun 2001 14:45:17 -0400
Just a quick note here to add that a folder dragged to the bottom of your
screen and then tabbed there is considered and open folder, so an attached
folder action will work with the minimum of screen real estate taken up.
Timothy
____________________________________
"A generation that gets impatient when a Web page
takes more than a few seconds to appear is not going
to waste its time on a government that's not able to
produce real solutions to real problems."
- Andrei Cherny
____________________________________
Photodesk
The Globe & Mail
www.globeandmail.ca
>
----------
>
From: Michelle Steiner
>
Sent: Friday, June 1, 2001 11:42 AM
>
To: email@hidden
>
Subject: Re: Folder action -- attaching script to a folder
>
>
On 6/1/01 7:22 AM, Michael Turner <email@hidden> wrote:
>
>
>Dumb question, but OS 9 is new to me... How do you attach a script to a
>
>folder? I want a folder action to move each screen capture as I make
>
them,
>
>and I plan to make a bunch.
>
>
Use the contextual menu to attach the script.
>
>
Here's the script:
>
>
on adding folder items to thisFolder after receiving theseItems
>
tell application "Finder"
>
repeat with ThisItem in theseItems
>
if (file type of ThisItem is "PICT") and (creator
>
type of ThisItem is
>
"ttxt") then
>
move ThisItem to folder "target" of the
>
startup disk
>
end if
>
end repeat
>
end tell
>
end adding folder items to
>
>
Two caveats:
>
>
1. The disk window must be open for the script to work.
>
2. Any PICT file with a creator of "ttxt" moved or copied to, or created
>
in, the root of the startup disk will be moved to the target folder.
>
>
--Michelle
>
>
----------------------------------------------------------------------
>
| Michelle Steiner | We're not human beings having a spiritual |
>
| | experience. We're spiritual beings |
>
| email@hidden | having a human experience. |
>
----------------------------------------------------------------------
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users