The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > OS X (Apple)
.
google unix.com



OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Device and Third-party Solaris Device Driver Reference Lists iBot Solaris BigAdmin RSS 0 03-23-2009 08:30 AM
Device and Third-party Solaris Device Driver Reference Lists iBot Solaris BigAdmin RSS 0 10-30-2008 08:10 AM
Recognition of Eyes-free Handwriting Input for Pen and Touch Interfaces iBot UNIX and Linux RSS News 0 05-22-2008 10:00 PM
Doodles for Authentication: Recognition and User Study Results iBot UNIX and Linux RSS News 0 05-06-2008 10:20 PM
Pattern Recognition - perl scorreg UNIX for Dummies Questions & Answers 3 09-23-2006 09:41 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-25-2009
djkuzenko djkuzenko is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 1
Automatic device recognition in OSX

Can anyone point me to a resource (or answer my question) that will show me how to automatically run a script in OSX when a device is plugged in. The OS recognizes that the device is plugged in but how do I direct it to do something I want it to do.

it seems that linux has udev but what would be an equivalent for OSX
  #2 (permalink)  
Old 05-08-2009
blackwire blackwire is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 10
you can attach a "Folder Action Script" to the director /Volumes
  #3 (permalink)  
Old 05-08-2009
blackwire blackwire is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 10
a little bit more detailed explained.

1. right-click to the desktop then -> More --> Enable Folder Actions

2. in Terminal App open the window /Volumes
sudo open /Volumes

you will get a finder window opening showing the mount point /Volumes

3. right-click on /Volumes -> More --> Attach a Folder Actions and select the script
/Library -> Scripts -> Folder Action Scripts -> new item alert.scpt

4. plug in a device (memory stick for example) and see what happens.

hope this helps
blackwire
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:38 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0