Help on a very basic script

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
wdc
Junior Coder
Posts: 33
Joined: Mon Jun 09, 2003 1:37 am
Location: Chevy Chase Maryland

Help on a very basic script

Post by wdc » Wed Feb 27, 2008 5:01 pm

I seem to have forgotten how to write simple MacroScheduler scripts and don’t have the time right now to refresh my understanding.

Would someone please tell me the commands I need to enter to have a certain file (apple.doc) displayed on the first AND the third of each month? FWIMBW … my pc is W98, my MS is Ver 6.2.

Thanks much.

User avatar
pgriffin
Automation Wizard
Posts: 460
Joined: Wed Apr 06, 2005 5:56 pm
Location: US and Europe

Post by pgriffin » Thu Feb 28, 2008 12:52 am

Label>Start
Day>TheDay
if>{(%TheDay%=1) or (%TheDay%=3)}
run>SomeWordDoc.doc
endif
Label>End

You might want to schedule this to run every day at a certain time...

wdc
Junior Coder
Posts: 33
Joined: Mon Jun 09, 2003 1:37 am
Location: Chevy Chase Maryland

Post by wdc » Sun Mar 02, 2008 5:11 pm

pgriffin: Thanks so much for your help.

Problem: how do I insert the command endif? I can't seem to find it in the list of my commands. I am using MS 6.2.

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 Mar 02, 2008 5:46 pm

IF / EndIf was added in Version 7.3, on 10/ 28/2004
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

wdc
Junior Coder
Posts: 33
Joined: Mon Jun 09, 2003 1:37 am
Location: Chevy Chase Maryland

Post by wdc » Mon Mar 03, 2008 7:05 pm

Thanks for your patience.

I am learning/experimenting with different commands. I have found that I can do what I want (sort of) by using the MessageModal command to display a reminder message ... but I am having trouble with the command that will directly display a Word file. Say I want to display the WORD file apple.doc that is in My Documents. Do I use the command
run> apple.doc or
run> word apple.doc or
run> C:\my documents\apple.doc ?

User avatar
pgriffin
Automation Wizard
Posts: 460
Joined: Wed Apr 06, 2005 5:56 pm
Location: US and Europe

Post by pgriffin » Mon Mar 03, 2008 7:38 pm

if your .doc file exists in a folder other than your script folder, then include the path to the file in the run> line.


run>C:\my documents\apple.doc

durexlw
Newbie
Posts: 18
Joined: Mon Mar 17, 2008 1:19 pm

Post by durexlw » Mon Mar 24, 2008 1:22 pm

another possibility is to just make a single line script: "run>C:\my documents\apple.doc" and schedule when it's run... if you want it run twice a month, make a new group and copy it twice in there, set schedules for each file... saves you the coding

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