Including Often Used Library Files

Ideas for new features & functions

Moderators: Dorian (MJT support), JRL

Post Reply
mightycpa
Automation Wizard
Posts: 343
Joined: Mon Jan 12, 2004 4:07 pm
Location: Vienna, VA

Including Often Used Library Files

Post by mightycpa » Wed Mar 17, 2021 1:45 pm

It would be nice to be able to customize the default script that loads in MS when you create a new one from the editor. If we could drop something like this in there:

Code: Select all

Let %LIBRARY_DIR%=C:\MS_SCRIPTS
Include>%LIBRARY_DIR%\MyLib.scp
that would be very convenient.
"A facility for quotation covers the absence of original thought." - Lord Peter Wimsey

User avatar
Grovkillen
Automation Wizard
Posts: 1131
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Including Often Used Library Files

Post by Grovkillen » Wed Mar 17, 2021 2:34 pm

Wouldn't this make more sense?

Code: Select all

Let>LIB_DIR=C:\path\to\library
Include>..\file. scp
This way the ".." double dots are replace automatically by the LIB_DIR variable
Let>ME=%Script%

Running: 15.0.27
version history

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1379
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Including Often Used Library Files

Post by Dorian (MJT support) » Wed Mar 17, 2021 2:52 pm

I have passed this on.
Yes, we have a Custom Scripting Service. Message me or go here

mightycpa
Automation Wizard
Posts: 343
Joined: Mon Jan 12, 2004 4:07 pm
Location: Vienna, VA

Re: Including Often Used Library Files

Post by mightycpa » Wed Mar 17, 2021 3:40 pm

re:

Code: Select all

Let>LIB_DIR=C:\path\to\library
Include>..\file. scp
Now that I think about it, the variable doesn't make sense at all. It's MY system, right? Or yours?
So that location is not likely to ever change, or if it does, only once in a blue moon. Therefore, I think this makes the most sense;

Code: Select all

Include>C:\path\to\library\file.scp
"A facility for quotation covers the absence of original thought." - Lord Peter Wimsey

User avatar
Marcus Tettmar
Site Admin
Posts: 7394
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Including Often Used Library Files

Post by Marcus Tettmar » Thu Mar 18, 2021 12:21 pm

mightycpa wrote:
Wed Mar 17, 2021 1:45 pm
It would be nice to be able to customize the default script that loads in MS when you create a new one from the editor.
You can:
https://www.mjtnet.com/manuals/v15/HTML ... plate.html
https://www.mjtnet.com/blog/2017/01/25/ ... templates/
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts