• 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: Frontmost document??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Frontmost document??


  • Subject: Re: Frontmost document??
  • From: Scott Lewis <email@hidden>
  • Date: Fri, 09 May 2003 18:50:58 -0400

I have found that using "front document" instead of "document 1" is better.
I usually set a variable "docName" to the name of front document, then if
for any reason the documents get accidentally reshuffled (by me), my command
is calling the document by name rather than by index, which changes.


tell application "Adobe Photoshop 7.0"
activate
Open file q
Set x to width of front document
Set y to height of front document
End tell

Scott Lewis
--
Get more work from your Mac!
Production Automation Specialist
(804) 353-6485
www.lewisdesign.net
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Frontmost document??
      • From: John Delacour <email@hidden>
    • Re: Frontmost document??
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Page Separations in Quark
  • Next by Date: Re: the clipboard as unicode text NOT
  • Previous by thread: Re: Frontmost document??
  • Next by thread: Re: Frontmost document??
  • Index(es):
    • Date
    • Thread