• 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
Can I Get the Properties of an Application whose Name is Determined at Run-Time?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can I Get the Properties of an Application whose Name is Determined at Run-Time?


  • Subject: Can I Get the Properties of an Application whose Name is Determined at Run-Time?
  • From: Jonathan Levi <email@hidden>
  • Date: Sat, 25 Oct 2014 22:38:39 -0400

Owing to name changes in the PDFpenPro application ("PDFpenPro", "PDFpenPro 6") I've tried to set the application's name at run-time. But then the Script Editor can't determine its properties:

tell application "PDFpenPro"
    set w to item 1 of (windows whose id is not -1)
    set d to document of w
    pages of d--knows that pages are properties of the document
end tell

set pdfPenAppName to "PDFpenPro"
tell application pdfPenAppName
    set w to item 1 of (windows whose id is not -1)
    set d to document of w
    pages of d--thinks "pages" is a variable, gives an error
end tell

Any workarounds?

TIA,

Jonathan
 _______________________________________________
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

  • Follow-Ups:
    • Re: Can I Get the Properties of an Application whose Name is Determined at Run-Time?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: click using option down button 2 of window 1
  • Next by Date: Re: Can I Get the Properties of an Application whose Name is Determined at Run-Time?
  • Previous by thread: Re: click using option down button 2 of window 1
  • Next by thread: Re: Can I Get the Properties of an Application whose Name is Determined at Run-Time?
  • Index(es):
    • Date
    • Thread