• 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: file locking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file locking


  • Subject: Re: file locking
  • From: Rob Stott <email@hidden>
  • Date: Thu, 21 Apr 2005 20:22:15 +0100


On 21 Apr 2005, at 19:47, Bob Cuilla wrote:

does anyone know how to lock a file ( or unlock it) using applescript?


You mean like this?

set theFile to choose file

tell application "Finder"
set the locked of theFile to true
end tell


...obviously, change to 'false' to unlock.

Hope that helps

r.

---

Rob Stott
- Development Team, Trident UK
Connaught Road, Kingswood, East Yorkshire HU7 3AP
Work: +44 (0) 1482 710344 • Mobile: +44 (0) 7881 811533 • Home: +44 (0) 1482 671129

My work: http://www.apple.com/uk/creative/trident/
My schedule: http://ical.mac.com/robstott/Robs32Schedule
My band: http://www.superscapemusic.co.uk
 _______________________________________________
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

References: 
 >file locking (From: Bob Cuilla <email@hidden>)

  • Prev by Date: file locking
  • Next by Date: Re: file locking
  • Previous by thread: file locking
  • Next by thread: Re: file locking
  • Index(es):
    • Date
    • Thread