- This compiles:
set imageApp to "Adobe Photoshop CS5.1" --tell application "Adobe Photoshop CS5.1" tell application imageApp --set w to width of current document --display dialog w end tell
- If I uncomment the “set w to width of current document” line I get an “expected end of line but found class name” error.
- And if I then use the literal app name it compiles again.
So it compiles with a variable app name or a call for the current document, but not both.
Thanks for any explanation/workaround.