• 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: Irwin Poche <email@hidden>
  • Date: Sat, 19 Feb 2005 09:37:33 -0600

I had considered locking the image but the problem is unlocking it. When, or rather what would trigger, that? What I had not considered was that the script continues to loop/idle as long as the Preview window is open and the unlocks the image once that window is gone.

Can anyone give me an idea if this is possible? I work on a laptop, so an actual loop isn't practice, the processor goes up to 100%, the fan comes on, and the battery drains.

The idea of changing privileges gives me the willies.

On Feb 18, 2005, at 1:01 AM, Jeff Shapiro wrote:

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
References: 
 >Viewing a jpeg (From: Irwin Poche <email@hidden>)
 >Re: Viewing a jpeg (From: Jeff Shapiro <email@hidden>)

  • Prev by Date: Re: Scripting Excel
  • Next by Date: Repositioning the AppleScript dialog box
  • Previous by thread: Re: Viewing a jpeg
  • Next by thread: Re: Viewing a jpeg
  • Index(es):
    • Date
    • Thread