Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MayPeng

macrumors member
Original poster
Hi,guys
Counld you know that how to How to controll the disk autostart programming in mac?

I use the MacImage tool to produce a HFS volume. So every time i plug my usb device to the mini mac, it will autostart.

Now i want to controll autostart in my code whenever i want it appear it will appear.

How could i do?

Thank you!
 
Hi,guys
Counld you know that how to How to controll the disk autostart programming in mac?

I use the MacImage tool to produce a HFS volume. So every time i plug my usb device to the mini mac, it will autostart.

Now i want to controll autostart in my code whenever i want it appear it will appear.

How could i do?

Thank you!


I want to supply as the following:
i have a way that i first get disk path and then simulate mouse right-click or double-click to display contents in disk. Now i have gotten its path .
but i want to simulate mouse right-click or double-click to perform the
"Open" operation to display contents in the disk;
How to do it ?
 
Hi,guys
Counld you know that how to How to controll the disk autostart programming in mac?

I use the MacImage tool to produce a HFS volume. So every time i plug my usb device to the mini mac, it will autostart.

Now i want to controll autostart in my code whenever i want it appear it will appear.

How could i do?

Thank you!

Applications that start automatically when a USB device is plugged into the Macintosh would be very, very dangerous. A hacker with a carefully prepared device could hack into any Macintosh that is not carefully watched in public.

I assume that Apple has done their best to make this impossible, and don't expect anyone to help you with this.
 
autorun is one of the worst features of Windows. (JMHO). I prefer the way Mac OS X handles DMGs, put it "in your face" and it's your responsibility to perform the desired action (copy to Applications folder, etc...).

B
 
A hacker with a carefully prepared device could hack into any Macintosh that is not carefully watched in public.

By "carefully prepared" you mean like a bootable copy of an OS install disk that lets you reset admin passwords? =)

You can make a very pleasant looking finder window including an image with instructions on installation, etc. or an installer.

https://forums.macrumors.com/threads/474334/

That thread links a site that gives some details on prepping your nice looking window that will open on mount.

-Lee
 
By "carefully prepared" you mean like a bootable copy of an OS install disk that lets you reset admin passwords? =)

I was thinking about something a lot faster. In public you would watch your MacBook so nobody can steal it. There is no way someone could boot from a USB drive while you watch it. But they might be able to plug in a USB stick, and if some small app launches automatically and quickly, that could do a lot of damage.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.