• 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: How to activate script embedded in Application Folder in Applications?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to activate script embedded in Application Folder in Applications?


  • Subject: Re: How to activate script embedded in Application Folder in Applications?
  • From: Phil Stokes <email@hidden>
  • Date: Thu, 15 Sep 2016 17:12:37 +0700


On 15 Sep 2016, at 16:47, Brian Christmas <email@hidden> wrote:

I’m using a ‘kill’ shell script to quit, but you’ve overlooked the caveat, ‘and restart it in one line’.


As far as I know, the only way to do it is the way we discussed earlier. Whether you issue the quit and launch commands through AppleScript, the shell or via Cocoa APIs isn’t really relevant. If you’re having trouble with ‘Quit’ then do a kill or [NSApp terminate]. 

If you are having trouble with launch or activate, look at man open, or better yet use the Cocoa API

[[NSWorkSpace sharedWorkspace] launchApplication:@“<path to your app>”];

But honestly, I think this is all moot. Given the complexity of the solution you’ve implemented, I’d be very surprised if the underlying problem was NOT memory leaks. Fix the cause, not the symptoms. 


Best


Phil


 _______________________________________________
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: How to activate script embedded in Application Folder in Applications?
      • From: Shane Stanley <email@hidden>
References: 
 >Re: How to activate script embedded in Application Folder in Applications? (From: Jerome Krinock <email@hidden>)
 >Re: How to activate script embedded in Application Folder in Applications? (From: Brian Christmas <email@hidden>)
 >Re: How to activate script embedded in Application Folder in Applications? (From: Phil Stokes <email@hidden>)
 >Re: How to activate script embedded in Application Folder in Applications? (From: Brian Christmas <email@hidden>)
 >Re: How to activate script embedded in Application Folder in Applications? (From: Phil Stokes <email@hidden>)
 >Re: How to activate script embedded in Application Folder in Applications? (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: How to activate script embedded in Application Folder in Applications?
  • Next by Date: Re: Setting a coloured label
  • Previous by thread: Re: How to activate script embedded in Application Folder in Applications?
  • Next by thread: Re: How to activate script embedded in Application Folder in Applications?
  • Index(es):
    • Date
    • Thread