Re: Resource folder of library script?
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