Need help creating a simple app...

Joel Kanning

Registered
I would like to create a simple app that launches Safari to run a web page locally. Ultimately I would like the web page files to be stored in the Resources directory of the app.

How would I go about this?

Thanks for your help,

Joel Kanning
 
You could create an applescript application in xcode. you should then be able to use applescript to run safari and get it to go to the correct page.
 
Here you go. I've included the Xcode project (was made in Cocoa). In the Finder, control-click the .app and go to Show Package Contents, then navigate to Contents/Resources/website. This is where the web site files can go. You can change the name of the folder, but make sure you update that name in the Contents/Info.plist file for the key BundleSitePath at the bottom..
 

Attachments

  • OpenWeb.zip
    71.9 KB · Views: 8
Back
Top