Re: Folder action for volume mounted?
Re: Folder action for volume mounted?
- Subject: Re: Folder action for volume mounted?
- From: John Delacour <email@hidden>
- Date: Wed, 13 Aug 2003 09:16:27 +0100
At 9:05 pm -0700 12/8/03, David Graham wrote:
Hi all,
I'm working on a solution (OS 9 only at present) to automate the
off-loading process of digital images from a flash card, and I need
to have my script activated when the flash card is inserted into the
USB media reader. I thought of attaching a folder action to the
desktop folder, but it doesn't look like it's possible. Can anyone
point me in the right direction?
You can do it with a stay-open applet, something like this:
global _volumes
on run
idle
end run
on idle
tell application "Finder" to set _volumes to name of disks
if "flash" is in _volumes then doThis()
return 20
end idle
on doThis()
-- ...
end doThis
.
_______________________________________________
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.