Automatically open scripts in Editor

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

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

Post by Marcus Tettmar » Mon Nov 24, 2008 4:26 pm

One thing that suprised be though, (perhaps I did something wrong) when I reinstalled, although my macros are all still there under My Documents\Macro Script Files the groups.dat file that have the location of the script and the folder in the editor were gone.
You ran a registry cleaner! Therefore the Macro Scheduler installer did not know that you already had Macro Scheduler installed. Therefore it defaulted to doing a full install with samples. Therefore it installed the sample scripts and macros.dat/groups.dat files. Therefore it overwrote your macro settings.

If you had selected the "Program Files" only option it would have retained your macro settings.

Of course since you are so dilligent as to run registry cleaners you presumably run nightly backups also, so can restore from last night's backup? ;-)
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

Restore Snippets

Post by kpassaur » Mon Nov 24, 2008 5:24 pm

Well, that is about the only way I can do it. Run a system restore, replace my files with the backups ect. However, I can live with what I have. But, I have lost my Snippets, Well I have not lost them, (the files are still there) But how do I set the path to them.

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

Post by Marcus Tettmar » Mon Nov 24, 2008 5:35 pm

Just copy the snippets folder into your Macro Scheduler data folder (Usually My Documents\Macro Scheduler).
Run a system restore
Do you really need to restore the entire system? What backup software are you using? I can restore selective files in a matter of seconds. I use and recommend Acronis True Image.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

True Image

Post by kpassaur » Mon Nov 24, 2008 5:58 pm

I use True Image as well and I restored the files. But it did not seem to work, so I restored the files in Macro Scheduler in the Program Manager as well.

Naturally, I can import them. But I am fine with what I have, except for the Snippets. Currently if I save one it goes to C:\Program Files\Macro Scheduler\snippets and the snippets.ini file is in C:\Program Files\Macro Scheduler\snippets as well.

I want it to go to My Documents\Macro Script Files\Snippets with the snippets.ini file in My Documents\Macro Script Files\Snippets.

All this boils down to is before I had all my files in My Documents\Macro Script Files\ and used MS to browse to what I needed. Now I wish to have the same folder struture that I used in MS in Explorer. I don't plan on using MS to organize files any more. I like it, and it has served me well. However, I have other files that relate to my scripts and it makes more sense to me to use explorer. Not that i like it better but when I go to a folder for a project all files will be there and I can use the Comments Tag to view their contents.

So I lost my old settings unless I want to restore. That is fine as I need to go forward and this will force me to become better organized. I don't have a ton of Snippets, maybe 50 at the most but I don't want to have to recreate them somewhere else. I want all of my files in My Documents as it makes it easy for me when I travel I don't have to go through My Programs and get certain files.

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

Post by Marcus Tettmar » Mon Nov 24, 2008 6:29 pm

The Snippets folder and Snippets.ini must go in the main Macro Scheduler data folder. By default after a new installation this is My Documents\Macro Scheduler. To determine what it is see what the following registry value is set to:

HKEY_CURRENT_USER\Software\MJTNET\MSched - DataDir
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

Snippets

Post by kpassaur » Mon Nov 24, 2008 6:39 pm

I have that folder in my registry, but no Data Directory or anything really close, just Col0, then Column0, EditorHeight etc. The only thing that has a path is the SetupSource and the InstallPath.

Perhaps I am looking in the wrong place?

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

Post by Marcus Tettmar » Mon Nov 24, 2008 6:51 pm

You should have an entry called DataDir containing the folder. Start Macro Scheduler if you haven't already to allow it to create it. If you don't have DataDir it will use the program folder which is not advisable. You can always create DataDir and set it to what you want it to be.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

Setting default Path

Post by kpassaur » Mon Nov 24, 2008 7:34 pm

That was it, I created the value and everything was restored.

Thanks

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Mon Nov 24, 2008 11:49 pm

Look for those files in the
C:\Documents and Settings\YourName\Application Data\Macro Scheduler\
or in
C:\Program Files\MJT Net Ltd\Macro Scheduler\
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

gdyvig
Automation Wizard
Posts: 447
Joined: Fri Jun 27, 2008 7:57 pm
Location: Seattle, WA

Shared vs Personal Snippets

Post by gdyvig » Sun Feb 15, 2009 3:53 am

Hi Bob,

You say each user on a machine may choose to set the DataDir to use personal snippets or shared snippets, but not both? We have several people on our team who would like to share snippets. We usually use separate machines but would like to set up snippet folders for subroutines loaded in our common IncludeXXX.scp scripts. If we have a shared DataDir, we would need to create personal folders for our own stuff.

Are there any drawbacks to this other than needing to back up our snippets and groups before installing updates? Could we put our DataDir on a network share?

Thanks,

Gale

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Sun Feb 15, 2009 4:26 am

I frequently have Macro Scheduler scripts on a network shared resource, that is not a problem.

I usually create a Group that is on the Network Drive folder. Then keep the scripts for that Group in that folder.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

gdyvig
Automation Wizard
Posts: 447
Joined: Fri Jun 27, 2008 7:57 pm
Location: Seattle, WA

Shared vs personal location of snippet.ini and other ini.

Post by gdyvig » Sun Feb 15, 2009 4:38 am

Yes, I know the groups can be pointed anywhere. But not the files that define the groups and snippets.

If each person for their HKEY_CURRENT_USER sets DataDir to the same folder, then they would all have the same snippets and would all have the same groups and would not need to import macros. If someone added a new snippet, it would automatically be available to all users.

I thought was what you meant when discussing earlier in this thread the two most common ways of defining DataDir.

Anyway, I was wondering if this sharing scheme would work or if we would step all over each other.

Thanks,

Gale

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