Re: Make an object the "focus" of AppleEvents
Re: Make an object the "focus" of AppleEvents
- Subject: Re: Make an object the "focus" of AppleEvents
- From: Emmanuel <email@hidden>
- Date: Fri, 16 May 2003 21:19:57 +0200
At 7:12 PM +0100 15/05/03, John Clark wrote:
>
Could someone explain how I make an object the 3focus2 of AppleEvents.
>
>
I have an image browser which has a command -
>
>
SetTellTarget
>
[to reference] -- reference to new focus of AppleEvents
I don't any more about the topic than what you wrote, but I would bet that you're supposed to pass an application, or an object of an application (such as "window 1 of application "Finder""), and that subsequent lines (in the same script), if not encapsulated in any "tell" wrapper, will be sent to that object.
-----------------
SetTellTarget to application "Finder"
set theFile to selection
-----------------
I suppose that the "to" parameter is optional because you just say "SetTellTarget" in order to cancel the previous "SetTellTarget to application blahblah".
Emmanuel
_______________________________________________
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.