How To Build An AppleScript-Based Cocoa-Application: Difference between revisions

From Wurst-Wasser.net
Jump to navigation Jump to search
Line 3: Line 3:
== Creating a Wikipedia-Application<ref>just like  [[5 Easy Steps To Your First RubyCocoa Application|this]]</ref> ==
== Creating a Wikipedia-Application<ref>just like  [[5 Easy Steps To Your First RubyCocoa Application|this]]</ref> ==
=== Creating the project ===
=== Creating the project ===
I used XCode 3.2.1 on Snow Leopard (10.6) for creating this project.
==== Choose "New Project…" from File Menu ====
[[Image:AppleScriptCocoaHowTo01.png]]
==== Choose "Cocoa-AppleScript Application" from Templates ====
[[Image:AppleScriptCocoaHowTo02.png]]
==== Add an Outlet ====
[[Image:AppleScriptCocoaHowTo03.png]]
[[Image:AppleScriptCocoaHowTo03a.png]]
==== Double-Click the Interface-File ====
[[Image:AppleScriptCocoaHowTo04.png]]
==== Search for WebView and drag it into your window ====
[[Image:AppleScriptCocoaHowTo05.png]]
[[Image:AppleScriptCocoaHowTo06.png]]
==== Resize the WebView to fill the window ====
[[Image:AppleScriptCocoaHowTo07.png]]
[[Image:AppleScriptCocoaHowTo08.png]]
==== Set Size-Settings for automatic resizing ====
[[Image:AppleScriptCocoaHowTo09.png]]
==== Connect the Outlet to the WebView ====
[[Image:AppleScriptCocoaHowTo10.png]]
[[Image:AppleScriptCocoaHowTo01.png]]
[[Image:AppleScriptCocoaHowTo01.png]]
[[Image:AppleScriptCocoaHowTo01.png]]
[[Image:AppleScriptCocoaHowTo01.png]]
[[Image:AppleScriptCocoaHowTo01.png]]


=== Adding a Web View ===
=== Adding a Web View ===

Revision as of 14:30, 11 October 2010

This page describes how you can build a simple AppleScript Application using XCode.

Creating a Wikipedia-Application[1]

Creating the project

I used XCode 3.2.1 on Snow Leopard (10.6) for creating this project.

Choose "New Project…" from File Menu

AppleScriptCocoaHowTo01.png

Choose "Cocoa-AppleScript Application" from Templates

AppleScriptCocoaHowTo02.png

Add an Outlet

AppleScriptCocoaHowTo03.png AppleScriptCocoaHowTo03a.png

Double-Click the Interface-File

AppleScriptCocoaHowTo04.png

Search for WebView and drag it into your window

AppleScriptCocoaHowTo05.png AppleScriptCocoaHowTo06.png

Resize the WebView to fill the window

AppleScriptCocoaHowTo07.png AppleScriptCocoaHowTo08.png

Set Size-Settings for automatic resizing

AppleScriptCocoaHowTo09.png

Connect the Outlet to the WebView

AppleScriptCocoaHowTo10.png


AppleScriptCocoaHowTo01.png AppleScriptCocoaHowTo01.png AppleScriptCocoaHowTo01.png AppleScriptCocoaHowTo01.png AppleScriptCocoaHowTo01.png

Adding a Web View

Opening an URL

More

Finetuning

There is some of finetuning that you might want to consider:


  1. just like this