How does AppleScript ID the application in a Tell block
How does AppleScript ID the application in a Tell block
- Subject: How does AppleScript ID the application in a Tell block
- From: "John C. Welch" <email@hidden>
- Date: Thu, 15 Feb 2007 10:27:07 -0600
- Thread-topic: How does AppleScript ID the application in a Tell block
I've run into a bug that I am kind of astonished by.
In my script for getting structured PDFs from Entourage, I've gotten a
report back that has the script locking onto Acrobat READER instead of
professional. I know the code in the script is correct, so it seems that the
system is doing this in the background.
So since AppleScript is obviously not using the literal name here, what
exactly DOES it use to find the application in the tell block?
What I think is the basic problem is that when you look at it, there's not a
lot of difference between reader and pro .
File Type and Creator Code? Exactly the same (THANKS ADOBE).
The extension and type identifiers are the same, but they're all
applications, that makes sense.
the bundle identifiers are different, but then I have to allow for Acrobat 7
standard, and in any event, searching for all of this is a real pain in the
keister for a script that has to deal with a non-avoidable delay anyway,
namely Acrobat's slow HTML conversion.
--
"Our users will know fear and cower before our software. Ship it! Ship it
and let them flee like the dogs they are!"
- 1st most commonly uttered Klingon programmer phrase
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden