• 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: Resource folder of library script?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resource folder of library script?


  • Subject: Re: Resource folder of library script?
  • From: Christopher Stone <email@hidden>
  • Date: Wed, 12 Feb 2014 07:06:05 -0600

On Feb 11, 2014, at 18:35, Jim Brandt <email@hidden> wrote:
Also, these libraries are being installed on multiple computers via dropbox, and thus the library location changes from machine to machine, so I need a way to locate it dynamically.
______________________________________________________________________

Hey Jim,

I'm not sure you've really given a clear picture of what you're doing, but maybe it's just me.

It looks to me like you need a clearly defined location on each individual computer and then you need to define that per/box using an available path to folder-name statement something like:

set libFile to alias ((path to home folder as text) & "Dropbox:Script_Support:db.lib.scpt")
set _script to load script libFile
if _script's imFine() ≠ true then
# Make the user connect the library manually.
end if

# Handler in db.lib.scpt returns true to verify connection.
on imFine()
return true
end imFine

You can also force the user to manually connect the library if it's not in the expected location.

--
Best Regards,
Chris

 _______________________________________________
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

References: 
 >Re: Resource folder of library script? (From: Jim Brandt <email@hidden>)

  • Prev by Date: Re: Resource folder of library script?
  • Next by Date: Re: Resource folder of library script?
  • Previous by thread: Re: Resource folder of library script?
  • Next by thread: Re: Resource folder of library script?
  • Index(es):
    • Date
    • Thread