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

Similar Threads
thread Thread Starter Forum Replies Last Post
xcode 5 ASOC progressindicator oblongmedulla Mac Programming 5 Feb 27, 2014 09:30 PM
Safari 6 search bar doesn't search themelz Mac Applications and Mac App Store 0 Aug 19, 2012 10:57 AM
Xcode : Search Bar Filtering EliasRahme iPhone/iPad Programming 1 Jul 18, 2012 04:58 PM
Chrome search bar giving blank search results gusmahler Mac Applications and Mac App Store 6 Jul 3, 2012 12:56 PM

Forum Jump

All times are GMT -5. The time now is 04:36 PM.

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

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