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 - Operating System General OS operation information and support

OS 10.5 - Making script automatically run


Post Reply New Thread Subscribe

 
Thread Tools
ruffryder1613

 
Member Since: Jun 01, 2009
Posts: 2
ruffryder1613 is on a distinguished road

ruffryder1613 is offline
Hi,
Is there a way to make the attached script run everytime a file is added to a certain folder? Basically the script changes the permissions of the file to RW RW RW so i am trying to make it do this to the file automatically when it is added to a certain folder on my computer? Thanks!

on open these_items
repeat with i from 1 to the count of these_items
set this_item to item i of these_items
tell application "Finder" to reveal this_item
set this_path to the quoted form of the POSIX path of this_item
do shell script "chmod a+w" & space & this_path
end repeat
end open
QUOTE Thanks
technologist

 
Member Since: Mar 30, 2004
Location: USA
Posts: 4,744
technologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond reputetechnologist has a reputation beyond repute
Mac Specs: 12" Apple PowerBook G4 (1.5GHz)

technologist is offline
Apple - Pro - Tips - Adding Automation Through Folder Actions
QUOTE Thanks

Post Reply New Thread Subscribe


« in leopard we can't send sms through blue teeth in address book, right? | Removed Windows, how to change default boot »
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
Thread Starter
Forum
Replies
Last Post
Making a Shell Script Executable surfwax95 OS X - Development and Darwin 10 08-25-2010 04:15 PM
Script for adding users i_eat_short_ppl OS X - Operating System 0 06-04-2009 06:01 PM
Can't properly save and use script (Perl) files mscoxoh OS X - Operating System 0 05-09-2008 01:24 PM
Does Flight Simulator X run well on Parallels or Boot Camp? markw10 Running Windows (or anything else) on your Mac 15 11-04-2007 05:35 PM
Can you run Tiger and OS 8.6 on the same computer? RE: Repair Permissions sunshine1 OS X - Operating System 2 04-28-2006 03:02 PM

All times are GMT -4. The time now is 03:30 AM.

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

Welcome to Mac-Forums.com

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?