Re: Checking if script is run from login items
Re: Checking if script is run from login items
- Subject: Re: Checking if script is run from login items
- From: llee040 via AppleScript-Users <email@hidden>
- Date: Fri, 21 Aug 2020 11:27:50 -0500
I would probably save as an app the one I intend to run directly, so that it
quits after it accomplishes its purpose. If you see the app icon in your Dock,
you know you launched it. If its action occurs but there’s no Dock icon, then
it was launched by the login item. If it has to sit and wait for awhile before
it does something, then you could do the opposite (make an app of the
login-launched instance).
Laine
> On Aug 21, 2020, at 9:33 AM, Jenni via AppleScript-Users
> <email@hidden> wrote:
>
> I have a script that I run as a login item. I want it to behave a
> little differently if I run it directly. Is there a way to tell if a script
> is run from login items? Is there a “flag" that’s set that I could grab
> somehow?
>
> Thanks,
> Frank
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden