Re: file "locked" property...
Re: file "locked" property...
- Subject: Re: file "locked" property...
- From: Jean-Christophe Helary <email@hidden>
- Date: Thu, 25 Jun 2015 22:20:45 +0900
I'm using 10.10.3 as well and your code produces the following error:
error "Finder got an error: Can’t set file \"Mabinogion:Users:suzume:Desktop:locked_unlocked.rtf\" to true." number -10006 from file "Mabinogion:Users:suzume:Desktop:locked_unlocked.rtf"
and the highlighted part of the code is:
set locked of file tFile to true
Jean-Christophe
> On Jun 25, 2015, at 21:11, email@hidden <email@hidden> wrote:
>
> Hi Jean,
>
> Your request is quite unclear (missing code/ missing os level) that said...
>
> This is what I have tested under 10.10.3 and is working.
>
> tell application "Finder"
>
> set tFile to ((path to desktop folder) & "locked_unlocked.rtf") as string
>
> --- locked
>
> set locked of file tFile to true
>
> --- unlocked
>
> set locked of file tFile to false
>
> end tell
>
>
> Best regards,jan
>
>
>
>
>
> > Op 25 juni 2015 om 13:52 schreef Jean-Christophe Helary <email@hidden>:
> >
> >
> > 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...
> >
> > What am I doing wrong ?
> >
> > Jean-Christophe Helary
> >
> >
> >
> > _______________________________________________
> > 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