• 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: Reload Library?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reload Library?


  • Subject: Re: Reload Library?
  • From: Jim Underwood <email@hidden>
  • Date: Mon, 23 May 2016 01:43:50 +0000
  • Thread-topic: Reload Library?

Hey Chris,

What do you think about just using a simple AppleScript or KM macro to stop FastScripts, and then restart it?
That way it would be generic and work for all scripts and script libraries.

Best Regards,

Jim Underwood
aka JMichaelTX


From: <applescript-users-bounces+jmichael=email@hidden> on behalf of Chris Stone <email@hidden>
Date: Fri, May 20, 2016 at 11:25 AM
To: "ASUL (AppleScript)" <email@hidden>
Subject: Re: Reload Library?

FastScripts will run shell scripts, so in the event I need to reload a library reliably I can do something like this:

#!/usr/bin/env bash
read -r -d '' asCode <<'EOF'
   use myLib : script "z_Test"
   return myLib's TEST_LIBRARY_HANDLER()
EOF
myOutput=$(osascript -e "$asCode");
echo "$myOutput";


 _______________________________________________
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: Reload Library?
      • From: Christopher Stone <email@hidden>
References: 
 >Re: Reload Library? (From: has <email@hidden>)

  • Prev by Date: Re: Where to Place [use framework "Foundation"] for ASObjC Handlers?
  • Next by Date: Script to Open Camera RAW File Doesn't Open File, Gives No Error
  • Previous by thread: Re: Reload Library?
  • Next by thread: Re: Reload Library?
  • Index(es):
    • Date
    • Thread