• 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
Re: Folder Action for changing privileges
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder Action for changing privileges


  • Subject: Re: Folder Action for changing privileges
  • From: Brett Conlon <email@hidden>
  • Date: Fri, 29 Jun 2007 17:45:27 +1100


Does anyone have any other thoughts about an action folder script for setting permissions to full read/write?

Currently, because of a very weird issue in our studio happening on ALL Macs, all fonts need to be manually dropped onto a bundle script to have their permissions "other" to R/W) corrected before loading into our Font Management app, otherwise our Mac Splash RIP dumps the PostScript file thinking it isn't allowed to process fonts it finds with the "no access" permission.

Having this process automatically taken care of whenever our Font management app moves fonts into the designated folder would be one less thing the designers have to worry about and a real time-saver for us.

Your help is most appreciated.

Cheers,

Coj



Brett Conlon <email@hidden>
Sent by: applescript-users-bounces+brett.conlon=email@hidden

25/06/07 04:14 PM

To
email@hidden
cc
Subject
Folder Action for changing privileges






Hi all,


For some time now I've been successfully using a script application bundle for changing the permissions of the folder contents dropped onto it and today I tried making it into a folder action and, while it is successfully running, the permissions aren't changing. Here's the code:


on
adding folder items to theFolder after receiving theAddedItems
       
try
               
repeat with thisItem in theAddedItems
                       
set FilePath to quoted form of POSIX path of thisItem
                       
do shell script "chmod -R 777 " & 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
adding folder items to

I set the "Other" privileges to "No access" on all the contents, dropped it into the folder with the action set to it, the "success" message appears but permissions are the same. If I drop the same folder onto my bundle (same code) the "Others" permission sets to "Read/write".


All assistance would be most appreciated!


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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Folder Action for changing privileges
      • From: "J. Stewart" <email@hidden>
References: 
 >Folder Action for changing privileges (From: Brett Conlon <email@hidden>)

  • Prev by Date: Re: time formatting
  • Next by Date: Re: Folder Action for changing privileges
  • Previous by thread: Folder Action for changing privileges
  • Next by thread: Re: Folder Action for changing privileges
  • Index(es):
    • Date
    • Thread