Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 24, 2011, 03:45 PM   #1
BaldwinSoft
macrumors newbie
 
Join Date: Apr 2011
Xcode 4 ASOC Search Bar

Hi Guys,

While in the middle of working on an application I decided to upgrade to xcode 4. However, I soon learned that Xcode 4 no longer supports applescript applications, so I made the switch over to an ASOC application. Everything has went well expect for the search bar; I can't for the life of me get the search bar to take the text entered and put it into a variable. Any help to get this sorted out would be much appreciated.
Thanks,
Ian

Code:
on end editing theObject
	set song to content of text field "search" of window "Advanced"
	try
			tell application "iTunes" 
                play first item of (search first library playlist for (song))
            end tell
	on error
		display dialog "Song not found. Please make sure that you enter the correct title of the song." buttons {"Ok"} with icon 2 default button "Ok"
	end try
end end editing
BaldwinSoft is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
How do make Safari address bar a search bar? cudo Mac Basics and Help 20 Jun 13, 2013 02:22 PM
Xcode 4.1 'Run' won't work.. DoodlyDoo Mac Applications and Mac App Store 0 Sep 26, 2011 09:49 AM
xcode 4/older vs netbeans vs eclipse vs yourRecommendation on the mac for C++ neuroshock Mac Applications and Mac App Store 0 Jul 4, 2011 05:09 PM
Search bar not working in some pages mickbab Site and Forum Feedback 2 May 15, 2011 01:52 AM


All times are GMT -5. The time now is 09:17 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC