• 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 "locked" property...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file "locked" property...


  • Subject: Re: file "locked" property...
  • From: Axel Luttgens <email@hidden>
  • Date: Thu, 25 Jun 2015 16:06:00 +0200

> Le 25 juin 2015 à 13:52, Jean-Christophe Helary a écrit :
>
> I have a file that has a check in the "Locked" box when you verify its information in the Finder and when I do a "return properties of that_file" I do get a locked:true.
>
> Now, when I do "set locked of that_file to false" and check its properties I do get locked:false *but* the finder does not seem to have received that information and when I verify it in the Finder…

Hello Jean-Christophe,

Having a file named "readme.pdf" on my destkop, this one runs fine here (10.10.3):

	tell application "Finder"
		tell file "readme.pdf" of desktop
			set locked to true
			delay 5
			set locked to false
		end tell
	end tell

and the lock appears on the file’s icon, then disappears as expected.


> What am I doing wrong ?

Well… what’s your code?

Axel



 _______________________________________________
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


References: 
 >file "locked" property... (From: Jean-Christophe Helary <email@hidden>)

  • Prev by Date: Re: file "locked" property...
  • Next by Date: Re: file "locked" property...
  • Previous by thread: Re: file "locked" property...
  • Next by thread: Double Tell - Tell by Variable Question
  • Index(es):
    • Date
    • Thread