• 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: Viewing a jpeg
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Viewing a jpeg
      • From: Irwin Poche <email@hidden>
References: 
 >Viewing a jpeg (From: Irwin Poche <email@hidden>)

  • Prev by Date: Re: Possible math bug?
  • Next by Date: Re: Quark 5 'every text' problem
  • Previous by thread: Viewing a jpeg
  • Next by thread: Re: Viewing a jpeg
  • Index(es):
    • Date
    • Thread