Re: AppleScript examples for Xcode
Re: AppleScript examples for Xcode
- Subject: Re: AppleScript examples for Xcode
- From: Philip Aker <email@hidden>
- Date: Thu, 13 May 2004 10:32:29 -0700
On Thursday, May 13, 2004, at 07:56 US/Pacific, Steve Nicholson wrote:
Can anyone point me to some AppleScript examples for inserting text
into Xcode editor windows?
Choose "Show Older Release Notes" from Xcode's Help menu and then
choose the second Customization item in the Bookmarks popup.
Basically what I want to do is pop up a dialog, enter a couple fields,
and insert text based on those fields (e.g. to save typing when
creating a bunch of NSLocalizedStrings). I'm just starting to look at
AppleScript, so some examples will really help me get going.
Look in the example projects for AppleScript Studio to see how it deals
with nibs. Otherwise, if you can get by with one text field at a time,
there is a standard call:
try
display dialog "What do you want for lunch?" default answer "No
bananas"
set res to text returned of result
tell application "Xcode"
activate
set contents of selection of front source document to res
end tell
end try
Philip Aker
http://www.aker.ca
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.