Re: Automatic execution on removable media
I don't know if a folder action will work or not. If it can be attached to /Volumes, it might work.
on adding folder items to this_folder after receiving added_items
repeat with item_ in added_items
if name of (info for item_) is "Removable Disk Name" then
tell application "Finder" to set image_mounted to exists disk "name of disk image when mounted"
if image_mounted is false then
-- do stuff to open disk image
end if
exit repeat
end if
end repeat
end adding folder items to
FYI, the stay open app (script) wouldn't use much in the way of resources when it was idle. I have a couple that run 24/7.
No TechArena No Experts, Know TA know Experts!
Bookmarks