Pages

Subscribe:

Ads 468x60px

Labels

Sunday, August 12, 2012

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

Have a different question to ask? Start New Discussion Reply to this Discussion 11 Hours Ago 0

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.

Plazmotech Newbie Poster 2 posts since Jul 2012 Reputation Points: 0 Solved Threads: 0   9 Hours Ago 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 2,853 posts since Jul 2008 Reputation Points: 1,091 Solved Threads: 709   5 Hours Ago 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).

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 2 posts since Jul 2012 Reputation Points: 0 Solved Threads: 0   Related Article: How to run a python script when a flash drive is plugged in? How can I make windows execute a python script when a flash drive is plugged into the computer? Is there a way to do this with python or do I have to use windows? Post:Markdown Syntax: Formatting Help Bold Italic Code Inline Code Link Quote Heading Sub-Heading # List • List Undo Redo Insert Code Snippet (Alt

No comments:

Post a Comment