Re: Tell print/close to the frontmost app (uh-uh, JD)
Re: Tell print/close to the frontmost app (uh-uh, JD)
- Subject: Re: Tell print/close to the frontmost app (uh-uh, JD)
- From: Mr Tea <email@hidden>
- Date: Thu, 19 Sep 2002 15:32:15 +0100
This from John Delacour - dated 19-9-02 02.14 pm:
>
tell application "Finder"
>
set varApp to "" & (name of processes where it is frontmost)
>
end tell
>
tell application varApp to close window 1
-->Adobe Photoshop 7.0 got an error: window 1 doesn't understand the close
message.
Unfortunately, as I pointed out earlier in this thread, the term 'window' is
not equal to all apps.
This from Mr Tea - dated 19-9-02 12.19 pm:
>
Also, different applications use different applescript terms to describe the
>
same thing. 'Window' is a case in point. Some applications call open
>
document windows 'windows', some call them 'documents', and in some the
>
terms are interchangeable.
In Photoshop, for example, the requisite command is 'close document 1'
Nick
pp Mr Tea
_______________________________________________
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.