Re: Viewing a jpeg
Re: Viewing a jpeg
- Subject: Re: Viewing a jpeg
- From: Jeff Shapiro <email@hidden>
- Date: Fri, 18 Feb 2005 00:01:01 -0700
- Organization: Nensha
Irwin Poche was seen on 2/17/05 7:55 PM talking about:
> To be able to compare an image in iPhoto side by side with it's
> original, I have a script that builds the path to the "Originals"
> folder and opens the original.
How about having your script tell Finder to lock the file before
opening it (I'm ass-u-meing that locked=read only)? Or suppose a better
option would be to change Everyones Privileges or Owner Previleges to
read only. When your script is done, you could set it back to what it
was.
Sorry, I can't help out with some sample code (I'm still very new to
AS, and you probably know more than I).
Well, actually here's something really basic:
set this_item to (choose file)
tell application "Finder"
set oldPrivilege to (get owner privileges of this_item)
set properties of this_item to {owner privileges:read only}
--
-- Do whatever you need here
--
set properties of this_item to {owner privileges:oldPrivilege}
end tell
--
Listserv only address.
Jeff Shapiro
_______________________________________________
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