Hello - I would like to autorun a program written in java onto a USB device, so when plugged in it automatically runs the java program. Does anyone know how to write auto-run programs on a Mac?
Does it need to be in TextEditor or Applescript?

Btw there is no issue with it being used a PC - i just want it to work with a Mac.

Cheers

Member Avatar for coil

You can probably write an AppleScript that will open the file, but it's not exactly "autorun" because you still have to manually run the script (or download some other program that will execute it).

If it's not absolutely critical that the file runs, I'd suggest you just manually open it, because there's really no good solution.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.