PDA

View Full Version : how to set a year calendar in Pm QL ?



emilianomorgia
01-11-2006, 11:26 PM
For now no way to do it on pixelMAD ,

But you could use iCal instead .

How ?

iCal allow to lunch apple scripts

So you can set iCal to lunch a specific apple script at some point .

does PixelMad have a apple script dictionary ?
No ! Not yet ( may be never )

How to I use apple scripts to control pixelMad ?
PixelMAD have a integrated webserver , and it respond to certein specifics url hints like : http://localhost:8080/runPreset/1 ( this run preset one )

So you could use a shell command to hit the url and make Pm run a preset .

To do that the siplest way it's to create an apple script like this :




tell application "Pixelmad"
activate
delay 1
do shell script "/usr/bin/curl http://localhost:8080/runPreset/1"
end tell

That will run preset one .

If you save that apple script and load it in to iCal you will be able to control pixelMAD's presets in a infite calendar . not only weekly

So you could say run preset 100 the 31 dec 2010 .

is this 100% safe working procedure ?
I don't know , but since iCal will not crash it will work .

also you may see that I add :

tell application "Pixelmad"
activate

that will actvate Pm if it's inactive ( crashed )

Known issue .

if you want to remotelly controll a PM you will have to set the right path of every single script .

Also you will have to set the correct name for pixelMad application .
( that's because every pixelMad release have it's own unique name ) http://www.sinapsi.us/forum/images/upo/emoticon-0142-no.png

I have set a calendar to hit a Pm preset in the year 2010 , as soon I will have a confirm I'll report it

E

Bellow you can download a script example

emilianomorgia
02-11-2006, 12:08 AM
you can also send calendar via Mail .

modify at home and send it to customer

to do that will need to put the script in /Users/Shared

Why ?

Bacause iCal will use a absolute path witch mean that if you put the script in a folder like /User/emilianomorgia/pmscripts once you set the calendar then you will be not able to share that calendar with a remote machine .