New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

help needed to link up buttons on HUD Window to Applescript

Post Reply New Thread Subscribe

Thread Tools

Member Since: Feb 24, 2007
Posts: 100
nick_harambee is on a distinguished road

nick_harambee is offline

I have very limited experience of XCode, though I did build a very simple application some time ago that appended text to the Comments field of the currently playing track in iTunes using Applescript. The design of this app was basically just a set of drop down menus.

I now want to redesign this as a HUD Window, and thought it best to start again. Unfortunately because it was a while ago I have forgotten the steps I took to design the original app and having done some reading and googling I am still stuck.

What I have done so far is to create a new Cocoa Application, design a HUD Window with all the necessary buttons in IB and add the Applescript from the original project to the Classes Folder in XCode. The AppleScript basically just consists of a series of arguments like this:

on tempo3_(aNotification)
		tell application "iTunes"
			set current track's comment to ((get current track's comment) & " " & "tempo:3")
		end tell
	end tempo3_
In the original document the Applescript was listed in the MainMenu.xib window in IB as an App Delegate and I could ctrl click on buttons/menu items and link them to the various applescript instances/arguments in the Applescript, but since I copied the applescript from the old project to the new it isn't showing up in the MainMenu.xib window, so I'm obviously missing out an important step, and wonder if someone could point me in the right direction.



OS X 10.5.7
Mac Pro
2 x 3 GHz Dual-Core Intel Xeon
QUOTE Thanks

Post Reply New Thread Subscribe

« freelance software developer OSX | Terminal Command to open most recently modified .Numbers file ??? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
newbie question on XCode 3.2: how to populate pop up buttons/link to applescript nickharambee OS X - Operating System 0 10-21-2009 07:10 AM
Is it possible to launch a modal safari window with Applescript? gryphontech OS X - Apps and Games 0 06-05-2009 04:46 PM
Logic Express and Applescript via GUI Scripting albertaurus Music, Audio, and Podcasting 0 04-09-2009 01:13 PM
Format Link to open New Window Christopher Web Design and Hosting 1 12-05-2007 12:26 AM

All times are GMT -4. The time now is 04:34 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?