|
|
|
 |

January 15th, 2007, 08:20 PM
|
 |
General
|
|
Join Date: Jul 2004
Location: Portland, ME (USA)
Posts: 3,241
Thanks: 31
Thanked 65 Times in 18 Posts
|
|
Re: Mac OSX Automator Workflow for PBEM
Nice. I don't know much about Applescript. But, you can build apple scripts into Automator.
I have not spent a lot of time working on this, but the one thing that is still laborious is putting the turn number at the end of each email's subject line. That turn number is important for keeping track of various turn emails (which go into a smart mailbox in Mail for each particular game).
Do you know of a way to insert a text "variable" into a line of text, etc.?
In any case, it still reduces that hosting time significantly. I don't have to create or address the emails, and the attachments are made automatically.
Maybe Ygorl has some ideas, too. I know he created some Applescript stuff.
Pasha
|

January 16th, 2007, 12:35 PM
|
 |
Sergeant
|
|
Join Date: Apr 2004
Location: Tampa Bay, Florida, USA
Posts: 327
Thanks: 5
Thanked 33 Times in 11 Posts
|
|
Re: Mac OSX Automator Workflow for PBEM
Lucky you asked! The most recent version I posted has that capability built in (keeping track of turn numbers, posting them to the subject line!).
What I'm trying to research is a way to applescript Mail rules so that when a player sends a turn, the script automatically moves the attachment turnfile to a specified folder, and notifies a webpage that keeps track of who has sent, and received which turns in a game. I have found in past PBEM games (civilization, warlords) that player confusion over this is the source of most delays.
I know how to script the website part, but my initial forays into the mail rule applescript is going unexpectedly haltingly.
|

January 16th, 2007, 01:40 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: Mac OSX Automator Workflow for PBEM
On linux there are programs which "sort" incoming mail to "folders" for spam handling and such. You might look for applescript examples to do that. You should be able to modify one to handle a specific type of subject line and sort it out.
For the notify web-page part I went the lazy route by having the webpage display the actual files. Or in this case, possibly something that lists the emails that are in that incoming game folder that the first routine sent them off to.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|

January 16th, 2007, 02:45 PM
|
 |
General
|
|
Join Date: Jul 2004
Location: Portland, ME (USA)
Posts: 3,241
Thanks: 31
Thanked 65 Times in 18 Posts
|
|
Re: Mac OSX Automator Workflow for PBEM
Yes. I am stuck sending "status" emails to the players in between turns as a reminder and as a safeguard in case any players think they sent their turn (or if I never received the turn). A website might be nice, or a script that would automatically figure out which players have played and send an email. I think a reminder email is helpful to players. It would be to me. Dreams, dreams, dreams. 
|

January 16th, 2007, 04:43 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: Mac OSX Automator Workflow for PBEM
PashaDawg:
Is that a mac need? linux? windows?
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|

January 16th, 2007, 07:29 PM
|
 |
General
|
|
Join Date: Jul 2004
Location: Portland, ME (USA)
Posts: 3,241
Thanks: 31
Thanked 65 Times in 18 Posts
|
|
Re: Mac OSX Automator Workflow for PBEM
Hi Gandalf:
I have a Mac. I have an automator "workflow" that I posted earlier. It makes hosting PBEM a lot faster. It now takes less than 5 minutes to host the turn and get all the emails out. But it could be quicker if I did not need to manually add the turn number to each email subject line. I am not cranky, but why not do even better!
Maybe I will take a look at some of the websites about using Automator.
Pasha
|

January 16th, 2007, 08:43 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: Mac OSX Automator Workflow for PBEM
If the game switch tells it to output a scoreboard file then you can get the turn from that.
Or you can do a check of the .2h files with
dom3 --verify gamename
and the turn number will be in the tiny .chk file
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|