Telling how a script is called

  • From: "Reed Poynter" <Reed.Poynter@xxxxxxxxx>
  • To: <jfw@xxxxxxxxxxxxx>
  • Date: Sun, 18 Apr 2004 19:34:07 -0700

Hi super scripters,


I have a script that can be called by Alt+Shift+w or by PerformScript within 
another script.

I want to take an action if the script is called by Alt+Shift+w or if the 
script is called by PerformScript, I don't want to take the action.

Any suggestions?



Script WhereIsCursor (); Alt+Shift+w 



... do some stuff ...



If Alt+Shift+W called this script then

do something

EndIf



... do some more stuff ...



EndScript



Script UITab (); Control+Shift+t



...do some stuff...

PerformScript WhereIsCursor()

...do some more stuff ... 



EndScript



Thanks!



Reed Poynter

--
To post a message to the list, send it to jfw@xxxxxxxxxxxxx
To unsubscribe from this mailing list, send a message to 
jfw-request@xxxxxxxxxxxxx with the word unsubscribe in the subject line.
Archives located at: //www.freelists.org/archives/jfw

If you have any concerns about the list, post received from the list, or the 
way the list is being run, do not post them to the list. Rather contact the 
list owner at jfw-admins@xxxxxxxxxxxxxx

Other related posts: