Good Time For Applescript?

Posts: 1,066
Joined: 2004.07
Post: #1
I'm making buttons that take the user to my website and to iDevGames. They are plain NSButtons and I'm making it all with interface builder. Should I use Applescript to get this functionality or is there an easier/better way? If applescript, how would I do this? I've never used it before in apps, just little scripts that just open websites when run.
Quote this message in a reply
Posts: 208
Joined: 2005.04
Post: #2
Well, if this is a Cocoa app, you can skip the applescript and go straight to NSWorkspace. For example,

[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@""]];
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Applescript: Get message content from Mail Yoda 2 5,473 Apr 1, 2006 11:52 AM
Last Post: Yoda
  Applescript-NSToolbar Coin 0 3,104 Mar 14, 2005 12:06 AM
Last Post: Coin
  Applescript+Cocoa URL source stealing mania! Coin 7 7,198 Mar 12, 2005 02:02 PM
Last Post: Coin