New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

Run script when a file is opened

Post Reply New Thread Subscribe

Thread Tools

Sunlis's Avatar
Member Since: Aug 07, 2007
Posts: 3
Sunlis is on a distinguished road

Sunlis is offline
I'm looking for a way to run a script when a file in a given folder is opened.
I've looked into Folder Actions and Automator seems to be the easiest way to do this, since I don't know much about Applescript.
Problem is, Folder Actions only seem to be able to run when something is put into a folder, not when it's opened.
Is there any way to do this? Maybe even with a simple script running in the background? All I really need to do is change the colour label of a file when I open it, maybe a few other little things that I can figure out, I just need the handler for this kind of thing...
QUOTE Thanks

Post Reply New Thread Subscribe

« Web service with Apache | getting started with Xcode »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
run script when 1) internet is connected 2) login/logout/wake 4) some app is launched bacchusf OS X - Operating System 0 10-21-2009 11:44 PM
Run a remote script without mounting its drive first opus_az OS X - Operating System 0 11-30-2007 10:43 AM
File copying frustrations - help? djmitch Switcher Hangout 5 06-27-2005 01:23 AM
Can you guys open this site? Desolate One OS X - Apps and Games 13 04-29-2005 01:23 PM

All times are GMT -4. The time now is 10:24 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?