• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Checking if script is run from login items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Checking if script is run from login items
      • From: Jenni via AppleScript-Users <email@hidden>
References: 
 >Checking if script is run from login items (From: Jenni via AppleScript-Users <email@hidden>)

  • Prev by Date: Checking if script is run from login items
  • Next by Date: Re: Checking if script is run from login items
  • Previous by thread: Checking if script is run from login items
  • Next by thread: Re: Checking if script is run from login items
  • Index(es):
    • Date
    • Thread