Make a button.
Use the perform applescirpt funtion (in the miscellaneous heading)
Specify - Native Applescript
Enter the text below:
tell application "iCal"
Thank You. I copied and pasted the text into the "Native Applescript" box as you stated but keep getting the following error when I click ok:
"expected end of line but found unknown token"
Create A button
Set it to perform a Send Event Script Step
Press the Specify button on the Button Setup Window
Set the "Send The" pop up menu to "open application"
Press the Specify Application Button ( bottom of same window)
Point to your ICal app in your applications folder.
Set the "Bring Target App to Front" checkbox.
Thank You! It worked like a champ. Your awesome. Everyday I learn something new in the FMP. It is a great app but what makes it really great is the community of people helping each other. Have a great day!
Not sure why the applescript didn't work for ya...
But, I do like that Send Event Script option, coolio !!
I hope this thread is still being monitored...am really at the end of my rope.
Like the original poster, I need iCal to launch when I click a button—not necessarily sync data. I’ve tried both of the options shown above (one of which repeats). They launch iCal, but...only the program. No calendar magically appears as is the case when you double click on the iCal icon to launch it like normal.
Translated: It says iCal in the menu bar, but no calendar panel opens.
Help, anyone? Thanks!
This seems to work:
setvisibleofwindow "iCal" totrue
Fenton, you rock! It works like a charm as long as I manually type it, not copy/paste the text into the FM box.
Which begs the question—initially, I copied your text into a TextEdit document (notes for future reference), then copied/pasted from there into the FM program. That resulted in the following message:
“Expected end of line but found unknown token.”
Any idea what causes that? Is there some odd metadata hitching a ride on copied text that FM somehow reads? Just curious.
Thank you again—this is a major help.
Basically TexEdit is somewhat misnamed. It is more of a "text/rtf/whatever" editor. At its default settings it is not really a "text editor", and not suitable for programing. It likely added a Unix line feed to the end, which you copied, which AppleScript did not like, as it uses the old Mac carriage return.
A real text editor (free) is: