• 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: Folder action for volume mounted?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Folder action for volume mounted?
      • From: Christopher Nebel <email@hidden>
    • Re: Folder action for volume mounted?
      • From: David Graham <email@hidden>
References: 
 >Folder action for volume mounted? (From: David Graham <email@hidden>)

  • Prev by Date: Re: Why this doesn't work?
  • Next by Date: Re: Who unsubscribed me too? (was: Digest request)
  • Previous by thread: Folder action for volume mounted?
  • Next by thread: Re: Folder action for volume mounted?
  • Index(es):
    • Date
    • Thread