Can I Get the Properties of an Application whose Name is Determined at Run-Time?
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