Good Time For Applescript?

Sage
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
Member
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,

Code:
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://www.google.com"]];
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 4,280 Apr 1, 2006 11:52 AM
Last Post: Yoda
  Applescript-NSToolbar Coin 0 2,349 Mar 14, 2005 12:06 AM
Last Post: Coin
  Applescript+Cocoa URL source stealing mania! Coin 7 5,115 Mar 12, 2005 02:02 PM
Last Post: Coin