Results 1 to 2 of 2
  1. #1


    Member Since
    Jun 01, 2009
    Posts
    2
    Making script automatically run
    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

  2. #2


    Member Since
    Mar 30, 2004
    Location
    USA
    Posts
    4,744
    Specs:
    12" Apple PowerBook G4 (1.5GHz)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Write a script that will automatically import .ics to iCal
    By newMacGirl2 in forum OS X - Development and Darwin
    Replies: 3
    Last Post: 06-03-2011, 05:28 PM
  2. Making a Shell Script Executable
    By surfwax95 in forum OS X - Development and Darwin
    Replies: 10
    Last Post: 08-25-2010, 04:15 PM
  3. Making a maintenance script to run in automator
    By Gdog in forum OS X - Operating System
    Replies: 0
    Last Post: 02-19-2010, 12:33 PM
  4. How to use QuickSilver to run my script
    By yinglcs in forum OS X - Operating System
    Replies: 0
    Last Post: 02-09-2009, 08:54 PM
  5. How-To run a script?
    By milessthomas in forum OS X - Development and Darwin
    Replies: 4
    Last Post: 10-06-2007, 03:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •