How to properly include a script library?
How to properly include a script library?
- Subject: How to properly include a script library?
- From: Jenni via AppleScript-Users <email@hidden>
- Date: Mon, 18 Apr 2022 07:51:08 -0700
I'm trying to include a script library I created into another script of
mine. I thought I could just include it with:
use script "Library Name"
and it would then be available in the current script. However, that's not
working for me. SD tells me my variables aren't defined. So I created a very
simple test setup. My TestLib library file contains just the following:
set my_server to "set.server.com"
property server : "property.server.com"
property fmp_record : "Test String"
Then in my calling script I have:
use AppleScript version "2.7"
use scripting additions
use script "TestLib"
display dialog fmp_record
but SD says "The variable fmp_record is not defined." Same response whether
it's a property or using set.
Testing doesn't get any simpler than this, but I just can't see the
problem. Any ideas?
Thanks,
Marc
MacOS 10.15.7
ScriptDebugger 6.0.4
TestLib.scpt is in ~/Library/Script Libraries/
_______________________________________________
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