• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Script to set a folder's contents to Read/Write
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Script to set a folder's contents to Read/Write


  • Subject: Script to set a folder's contents to Read/Write
  • From: Brett Conlon <email@hidden>
  • Date: Tue, 7 Mar 2006 09:53:06 +1000


Hi all,

In our studio we have issues where if the PostScript outline font is set to permissions "Others: No Access" the job will dump in the RIP and no file is printed.

The designers have been manually adjusting the permissions but I thought I'd write a script to help them achieve this much quicker.

The below script seems to be working fine as an application bundle. Drag your folder/s onto the script and the permissions are changed to full read/write.

When I did a search on the archive there were similar discussions but mostly to do with folder action scripts,  so I thought I'd share it for others with similar needs.

===============================================
on open (Folderz)
        try
                repeat with thisFolder in Folderz
                        set filePath to quoted form of POSIX path of thisFolder
                        do shell script "chmod -R ugo+rw " & filePath
                end repeat
                display dialog "Permissions changed successfully." buttons {"Thanks!"} default button 1
        on error
                display dialog "Changing permissions failed. Please try it manually" buttons {"OK"} default button 1
        end try
end open

on run
        try
                set aFolder to choose folder with prompt "Please choose a folder to process"
                set filePath to quoted form of POSIX path of aFolder
                do shell script "chmod -R ugo+rw " & filePath
                display dialog "Permissions changed successfully." buttons {"Thanks!"} default button 1
        on error
                display dialog "Changing permissions failed. Please try it manually" buttons {"OK"} default button 1
        end try
end run
===============================================

There may even be a better way to impliment this. All suggestions welcome!

Cheers,

Cojcolds
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Script to set a folder's contents to Read/Write
      • From: Stan Cleveland <email@hidden>
  • Prev by Date: Re: another Safari question
  • Next by Date: Re: Script to set a folder's contents to Read/Write
  • Previous by thread: Re: Database Events...
  • Next by thread: Re: Script to set a folder's contents to Read/Write
  • Index(es):
    • Date
    • Thread