We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

How do I run a Python script when a flash drvie is plugged into my Mac OSX?

As the title says, I have a flash drive, and a script on that flash drive. Whenever I plug my drive into my Mac OSX, I want a specific Python script that is on my drive to run, and be able to access directories on my computer. Why am I doing this? I'm crazy, and I felt like knowing, for future use. And for present experiments.

2
Contributors
2
Replies
5 Hours
Discussion Span
10 Months Ago
Last Updated
3
Views
Plazmotech
Newbie Poster
10 posts since Jul 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

I found this. You could replace the bash script by a python script. You must learn a bit of the launchd system in mac os (which I don't know).

Gribouillis
Posting Maven
Moderator
3,101 posts since Jul 2008
Reputation Points: 1,130
Solved Threads: 761
Skill Endorsements: 11

I found this. You could replace the bash script by a python script. You must learn a bit of the launchd system in mac os (which I don't know).

I wasn't able to understand this, much less make it work. I know nothing about plists, and I wasn't able to find any useful things online to make it work.

Plazmotech
Newbie Poster
10 posts since Jul 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0602 seconds using 2.64MB