Jump to content

Determine (in a script) if a script is being pulled or pushed

Recommended Posts

Is there any way to pass a variable which will allow a script to differentiate between when it is pushed from Automate (e.g manually pushed or scheduled) and when it is pulled by an end user via a custom tray menu item?  The end goal is to be able to include a yes/no prompt if the user calls the script from the system tray and skip it if the script is pushed.



Link to post
Share on other sites
  • 3 weeks later...

@McDemonHonestly not too certain how that works. My initial thought is that you won't be able to tell specifically that it was created from the tray icon. However, What I'd do atleast would be to create a wrapper script that's just to be placed in the tray menu item, which will then run the script that you want to be able to be run from the tray. In the wrapper script, you could then add in the prompts that you'd like to put in there for the user.

Edited by Edward Cossett
Tagged user
Link to post
Share on other sites
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...