I have been asked by a friend to find out if it is possible to have files saved on a USB device that auto launch/run on mac OSX. My memory fades but I can’t recall having ever had anything that does this. So my Question is this even possible? or does the OS NOT permit this for various reasons? I know the subject is off topic but I also know there are a several people who’s knowledge extends beyond that of AppleScript and may be able to point me in the right direction (other forums etc.) Im Not sure where to even get started on this on so any help would be great. The PC side of this has already been sorted. The kind of thing I mean is directing the default web browser to a URL or throwing up a system dialog etc.
Hi,
Mac OS doesn’t support autorun from removable media for security reasons.
Thanks for confirming this Stefan. To be honest that was what I expected and pretty much the only info I did manage to find. The next option would be to have a window with custom graphics so that when the user double clicks the device they are greeted with a formatted window. Like you get with some disk image & CD/DVD installers ‘drag this icon’ to ‘applications’ etc. is this at all possible on a USB device?
Of course it is. Put an invisible image onto the USB device (e.g. a folder .background containing the image)
and assign the image as background in the view options
Stefan, I had a quick play with this and could not get this to work. I can hide the image file in two ways call it ‘.background’ then copy to USB or place it in folder called ‘.folder’ this part is fine. The problem is once hidden Im not able to navigate from the choose image view options to the file as there is no where where I can enter a file path as option? Do I then need to use a script where I can set this background image where I can choose file and include invisibles? When running a simple test with a visible image the view options did not persist once the disk was ejected is there a way to make this persistent on removable media through info in the ‘DS_Store’ file or other method.
remove the leading dot, that makes the folder visible, assign the picture and rename the folder again.
Choose icon view and check “Always open in icon view” in the view options
Thanks Stefan, I will try that again.
You could also enable viewing of invisibles temporarily whilst you’re choosing the “.background” file
edit
Nevermind I’m an idiot.
this doesn’t affect the open dialog box to assign a background picture