I am a little confused at what you want to do.
Now there maybe mistakes in my understanding, as I am only learning myself…
But in this script,
The Available speakers are gathered in the SBElementArray speakers.
Each item in this SBElementArray is already an NSArray itself. I.e SBElementArray {item0=NSArray {“name”,“connected”,“other Stuff??”}, item1=NSArray {“name”,“connected”,“other Stuff”}.
The for function, executes its following statements on each NSArray item.
#import <Foundation/Foundation.h>
#import <ScriptingBridge/ScriptingBridge.h>
#import "Airfoil.h"
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
AirfoilApplication *Airfoil = [SBApplication applicationWithBundleIdentifier:@"com.rogueamoeba.Airfoil"];
SBElementArray * speakers =[Airfoil speakers] ;
id item;
if ([speakers count] > 0) {
for (item in speakers) {
NSLog(@" %@ <--This item is an Array inside the SBElementArry ",item);
NSNumber * conn = [NSNumber numberWithUnsignedInt: [item connected]];
NSString * displayedName= [item name];
NSLog(@"The Speaker %@ is %@ (0 =not connected, 1 connected)", displayedName,conn);
NSLog(@"Connecting the Speaker %@",displayedName);
[Airfoil connectTo:item password:nil];
conn = [NSNumber numberWithUnsignedInt: [item connected]];
NSLog(@"The Speaker %@ is %@ (0 =not connected, 1 connected)", displayedName,conn);
}
}
[pool drain];
return 0;
}
thanks for your help mark. After getting the list of the speakers with their connected state, I populate a tableview and then want to be able to either connect or disconnect to those speakers. Thanks to you I can now get the state of the speakers and populate this tableview. What I want to do is implement this part
- (void) connectTo:(NSArray *)x password:(NSString *)password; // Connect to the Airport Express speakers
of the Airfoil.h header file. I think I might have to do something like this
http://www.selvern.com/yanblog/2009/06/20/scripting-bridge/
QuickTimePlayerApplication *qt = [SBApplication applicationWithBundleIdentifier:@"com.apple. quicktimeplayer"];
QuickTimePlayerDocument *document = [[[qt classForScriptingClass:@"document"] alloc] init];
[[qt documents] addObject];
simply doing this
[Airfoil connectTo:setTheSpeaker password:nil];
doesn’t do anything.
I’m going to play around with it some more. And maybe post to the apple email list. http://lists.apple.com/index.html
If you haven’t used it I just used it for the first time yesterday and got some really good help with something else I was working on.
You need to read the documentation of SBElementArray .
objectWithName:
Is what you want, it lets you find the Object in the array whose name matches the string in the argument.
As opposed to the normal NSArray’s ObjectAtindex.
This script finds my Speaker named “Computer” and makes it Active (connected)
#import <Foundation/Foundation.h>
#import <ScriptingBridge/ScriptingBridge.h>
#import "Airfoil.h"
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
AirfoilApplication *Airfoil = [SBApplication applicationWithBundleIdentifier:@"com.rogueamoeba.Airfoil"];
SBElementArray * speakers =[Airfoil speakers] ;
id aSpeaker = [speakers objectWithName: @"Computer"];
[Airfoil connectTo:aSpeaker password:nil];
NSString * displayedName= [aSpeaker name];
NSNumber * conn = [NSNumber numberWithUnsignedInt: [aSpeaker connected]];
NSLog(@"The Speaker %@ is %@ (0 =not connected, 1 connected)", displayedName,conn);
[pool drain];
return 0;
}
Don’t get me wrong, as i am enjoying this particular learning curve, But can I ask why you are re inventing the wheel?, Airfoil comes with its own control window that does what you are asking for??
thanks again mark. Now I see your previous post does what I want. Your patience and help has been amazing. I thought I had to create a new NSArray instead of passing the speaker SBElementArray. Makes sense though because I couldn’t figure out what keys needed to be in the array. I should have read over that section more carefully but since you can’t create an SBElementArray I thought it was only for getting objects not passing them back to an application. I actually thought I was learning something and figuring stuff guess I need to start going over my books and tutorials again.
I am creating an application that has a webview so you can listen to Pandora or grooveshark, etc and have airfoil just send the audio from that application to the speakers. At first I was just going to have it connect to all of the available speakers on startup and select the application as Airfoil’s target. But now I have a tableview that allows the user to select the available speakers and disconnect or connect. I know they could just do this through airfoil but eventually I wanted to connect to the speakers without airfoil. If I’m having this much trouble with reading the developer docs on Scripting Bridge it will be a while before that happens.
thanks again, it’s almost done so I’ll post it to google code and you can take a look at it. You wrote half of it so I’ll make sure to credit your name.
hhas
October 31, 2009, 9:08am
#25
Have you tried objc-appscript yet? I think you will find it much easier; the ASTranslate tool alone should answer many of your questions on how to convert AppleScript-style commands and references into ObjC syntax. Appscript’s only downside is that it isn’t included in the OS, so you have to download and build it yourself; however, it’s MIT-licensed so you can freely include the appscript framework in your application bundle when you come to distribute it.
I was glad to help, and thanks for credit, not necessary, but nice all the same.
I look forward to seeing the app.
All the best.
M.
hhas:
Have you tried objc-appscript yet? I think you will find it much easier; the ASTranslate tool alone should answer many of your questions on how to convert AppleScript-style commands and references into ObjC syntax. Appscript’s only downside is that it isn’t included in the OS, so you have to download and build it yourself; however, it’s MIT-licensed so you can freely include the appscript framework in your application bundle when you come to distribute it.
Hi Has,
I having a look at this, And possibly being a bit thick, but where do I get the Appscript framework from??
hhas
November 2, 2009, 8:45pm
#28
Yeah, the website needs a little work. Anyway, it’s in the Subversion repository. To check out the current trunk (which includes documentation):
svn co https://appscript.svn.sourceforge.net/svnroot/appscript/objc-appscript/trunk objc-appscript-trunk
You’ll also need ASDictionary to generate ObjC glues. (And a copy of ASTranslate will be very useful too.)
If you plan on embedding the appscript framework in your application bundle, instructions can be found on Apple’s site .
HTH
Oo, k…
I have never used svn? I assume I have to download a front end to get that link to work?. Is the one that you can recommend.
I did find your appscript page and downloaded a appscript, not sure its the right one.
And I copied the framework into my user frameworks folder.
it does not show up in the stored list, so I have to still go and look for it.
If I make a project of my own, and add the framework, and the (finder) headers folder, some code from the translator, I can get it to compile. But not build. I suddenly get a load of errors.
( I set the build for 10.5)
I grabbed the ‘SelectFilesInFinder’ example.
Got errors on complie, and had to re point to it frameworks folder?, set it to 10.5,
Compiled ok, and built ok, ran ok.
Stripped the example code. Pasted mine. Ran ok.
Not sure what the problem is.
Ah,
Just set the build to $(NATIVE_ARCH) which was the only think I found not the same.
And it now works ok :D,
And :sigh: just found the Docs.
Many thanks.
Hi Has,
I thought I had solved this problem,
Now I have come to put the code into my app, It compiles and runs ok. But I need it for 10.5 ppc.
I have found because I am running 10.6 intel, It would not let me build for 10.5 ppc.
I get lots of build errors . Do you know what this issue could be??
My app was building and running for 10.5 ppc, ok before.
Some of the errors
ld: warning: in /Users/markhunte/Library/Frameworks/Appscript.framework/Appscript, file is not of required architecture
Undefined symbols:
“OBJC_CLASS $_ASAppData”, referenced from:
__objc_classrefs__DATA@0 in FNApplicationGlue.o
“OBJC_METACLASS $_ASReferenceRenderer”, referenced from:
OBJC_METACLASS $FNReferenceRenderer in FNReferenceRendererGlue.o
"OBJC_CLASS $ASCommand", referenced from:
OBJC_CLASS $FNCommand in FNCommandGlue.o
"OBJC_CLASS $AEMApplicationRoot", referenced from:
objc_classrefs__DATA@0 in FNApplicationGlue.o
objc_classrefs__DATA@0 in FNReferenceGlue.o
"OBJC_IVAR $ASReference.AS_appData", referenced from:
-[FNApplication AS_referenceWithObject:] in FNApplicationGlue.o
-[FNApplication AS_referenceWithObject:] in FNApplicationGlue.o
-[FNApplication AS_referenceWithObject:] in FNApplicationGlue.o
-[FNApplication AS_referenceWithObject:] in FNApplicationGlue.o
-[FNReference description] in FNReferenceGlue.o
-[FNReference activate] in FNReferenceGlue.o
-[FNReference activate:] in FNReferenceGlue.o
-[FNReference cleanUp] in FNReferenceGlue.o
-[FNReference cleanUp:] in FNReferenceGlue.o
-[FNReference close] in FNReferenceGlue.o
-[FNReference close:] in FNReferenceGlue.o
-[FNReference copy ] in FNReferenceGlue.o
-[FNReference copy :] in FNReferenceGlue.o
-[FNReference count] in FNReferenceGlue.o
-[FNReference count:] in FNReferenceGlue.o
-[FNReference dataSize] in FNReferenceGlue.o
-[FNReference dataSize:] in FNReferenceGlue.o
-[FNReference delete] in FNReferenceGlue.o
-[FNReference delete:] in FNReferenceGlue.o
-[FNReference duplicate] in FNReferenceGlue.o
-[FNReference duplicate:] in FNReferenceGlue.o
-[FNReference eject] in FNReferenceGlue.o
-[FNReference eject:] in FNReferenceGlue.o
-[FNReference empty] in FNReferenceGlue.o
-[FNReference empty:] in FNReferenceGlue.o
-[FNReference erase] in FNReferenceGlue.o
-[FNReference erase:] in FNReferenceGlue.o
-[FNReference exists] in FNReferenceGlue.o
-[FNReference exists:] in FNReferenceGlue.o
-[FNReference get] in FNReferenceGlue.o
-[FNReference get:] in FNReferenceGlue.o
-[FNReference launch] in FNReferenceGlue.o
-[FNReference launch:] in FNReferenceGlue.o
-[FNReference make] in FNReferenceGlue.o
-[FNReference make:] in FNReferenceGlue.o
-[FNReference move] in FNReferenceGlue.o
-[FNReference move:] in FNReferenceGlue.o
-[FNReference open] in FNReferenceGlue.o
-[FNReference open:] in FNReferenceGlue.o
-[FNReference openLocation] in FNReferenceGlue.o
-[FNReference openLocation:] in FNReferenceGlue.o
-[FNReference print] in FNReferenceGlue.o
-[FNReference print:] in FNReferenceGlue.o
-[FNReference quit] in FNReferenceGlue.o
-[FNReference quit:] in FNReferenceGlue.o
-[FNReference reopen] in FNReferenceGlue.o
-[FNReference reopen:] in FNReferenceGlue.o
-[FNReference restart] in FNReferenceGlue.o
-[FNReference restart:] in FNReferenceGlue.o
-[FNReference reveal] in FNReferenceGlue.o
-[FNReference reveal:] in FNReferenceGlue.o
-[FNReference run] in FNReferenceGlue.o
-[FNReference run:] in FNReferenceGlue.o
-[FNReference select] in FNReferenceGlue.o
-[FNReference select:] in FNReferenceGlue.o
-[FNReference set] in FNReferenceGlue.o
-[FNReference set:] in FNReferenceGlue.o
-[FNReference shutDown] in FNReferenceGlue.o
-[FNReference shutDown:] in FNReferenceGlue.o
-[FNReference sleep] in FNReferenceGlue.o
-[FNReference sleep:] in FNReferenceGlue.o
-[FNReference sort] in FNReferenceGlue.o
-[FNReference sort:] in FNReferenceGlue.o
-[FNReference update] in FNReferenceGlue.o
-[FNReference update:] in FNReferenceGlue.o
-[FNReference FinderWindows] in FNReferenceGlue.o
-[FNReference aliasFiles] in FNReferenceGlue.o
-[FNReference aliasList] in FNReferenceGlue.o
-[FNReference application] in FNReferenceGlue.o
-[FNReference applicationFiles] in FNReferenceGlue.o
-[FNReference applicationProcesses] in FNReferenceGlue.o
-[FNReference clippingWindows] in FNReferenceGlue.o
-[FNReference clippings] in FNReferenceGlue.o
-[FNReference columns] in FNReferenceGlue.o
-[FNReference computerObject] in FNReferenceGlue.o
-[FNReference containers] in FNReferenceGlue.o
-[FNReference deskAccessoryProcesses] in FNReferenceGlue.o
-[FNReference desktopObject] in FNReferenceGlue.o
-[FNReference desktopWindow] in FNReferenceGlue.o
-[FNReference disks] in FNReferenceGlue.o
-[FNReference documentFiles] in FNReferenceGlue.o
-[FNReference files] in FNReferenceGlue.o
-[FNReference folders] in FNReferenceGlue.o
-[FNReference iconFamily] in FNReferenceGlue.o
-[FNReference internetLocationFiles] in FNReferenceGlue.o
-[FNReference items] in FNReferenceGlue.o
-[FNReference label] in FNReferenceGlue.o
-[FNReference packages] in FNReferenceGlue.o
-[FNReference preferences] in FNReferenceGlue.o
-[FNReference preferencesWindow] in FNReferenceGlue.o
-[FNReference processes] in FNReferenceGlue.o
-[FNReference trashObject] in FNReferenceGlue.o
-[FNReference windows] in FNReferenceGlue.o
-[FNReference FinderPreferences] in FNReferenceGlue.o
-[FNReference URL] in FNReferenceGlue.o
-[FNReference acceptsHighLevelEvents] in FNReferenceGlue.o
-[FNReference acceptsRemoteEvents] in FNReferenceGlue.o
-[FNReference allNameExtensionsShowing] in FNReferenceGlue.o
-[FNReference applicationFile] in FNReferenceGlue.o
-[FNReference arrangement] in FNReferenceGlue.o
-[FNReference backgroundColor] in FNReferenceGlue.o
-[FNReference backgroundPicture] in FNReferenceGlue.o
-[FNReference bounds] in FNReferenceGlue.o
-[FNReference calculatesFolderSizes] in FNReferenceGlue.o
-[FNReference capacity] in FNReferenceGlue.o
-[FNReference class ] in FNReferenceGlue.o
-[FNReference clipboard] in FNReferenceGlue.o
-[FNReference clippingWindow] in FNReferenceGlue.o
-[FNReference closeable] in FNReferenceGlue.o
-[FNReference collapsed] in FNReferenceGlue.o
-[FNReference color] in FNReferenceGlue.o
-[FNReference columnViewOptions] in FNReferenceGlue.o
-[FNReference comment] in FNReferenceGlue.o
-[FNReference completelyExpanded] in FNReferenceGlue.o
-[FNReference computerContainer] in FNReferenceGlue.o
-[FNReference container] in FNReferenceGlue.o
-[FNReference containerWindow] in FNReferenceGlue.o
-[FNReference creationDate] in FNReferenceGlue.o
-[FNReference creatorType] in FNReferenceGlue.o
-[FNReference currentPanel] in FNReferenceGlue.o
-[FNReference currentView] in FNReferenceGlue.o
-[FNReference delayBeforeSpringing] in FNReferenceGlue.o
-[FNReference description ] in FNReferenceGlue.o
-[FNReference deskAccessoryFile] in FNReferenceGlue.o
-[FNReference desktop] in FNReferenceGlue.o
-[FNReference desktopPicture] in FNReferenceGlue.o
-[FNReference desktopPosition] in FNReferenceGlue.o
-[FNReference desktopShowsConnectedServers] in FNReferenceGlue.o
-[FNReference desktopShowsExternalHardDisks] in FNReferenceGlue.o
-[FNReference desktopShowsHardDisks] in FNReferenceGlue.o
-[FNReference desktopShowsRemovableMedia] in FNReferenceGlue.o
-[FNReference disclosesPreviewPane] in FNReferenceGlue.o
-[FNReference disk] in FNReferenceGlue.o
-[FNReference displayedName] in FNReferenceGlue.o
-[FNReference ejectable] in FNReferenceGlue.o
-[FNReference entireContents] in FNReferenceGlue.o
-[FNReference everyonesPrivileges] in FNReferenceGlue.o
-[FNReference expandable] in FNReferenceGlue.o
-[FNReference expanded] in FNReferenceGlue.o
-[FNReference extensionHidden] in FNReferenceGlue.o
-[FNReference file] in FNReferenceGlue.o
-[FNReference fileType] in FNReferenceGlue.o
-[FNReference floating] in FNReferenceGlue.o
-[FNReference foldersOpenInNewWindows] in FNReferenceGlue.o
-[FNReference foldersSpringOpen] in FNReferenceGlue.o
-[FNReference format] in FNReferenceGlue.o
-[FNReference freeSpace] in FNReferenceGlue.o
-[FNReference frontmost] in FNReferenceGlue.o
-[FNReference group] in FNReferenceGlue.o
-[FNReference groupPrivileges] in FNReferenceGlue.o
-[FNReference hasScriptingTerminology] in FNReferenceGlue.o
-[FNReference home] in FNReferenceGlue.o
-[FNReference icon] in FNReferenceGlue.o
-[FNReference iconSize] in FNReferenceGlue.o
-[FNReference iconViewOptions] in FNReferenceGlue.o
-[FNReference id ] in FNReferenceGlue.o
-[FNReference ignorePrivileges] in FNReferenceGlue.o
-[FNReference index] in FNReferenceGlue.o
-[FNReference informationWindow] in FNReferenceGlue.o
-[FNReference insertionLocation] in FNReferenceGlue.o
-[FNReference item] in FNReferenceGlue.o
-[FNReference journalingEnabled] in FNReferenceGlue.o
-[FNReference kind] in FNReferenceGlue.o
-[FNReference labelIndex] in FNReferenceGlue.o
-[FNReference labelPosition] in FNReferenceGlue.o
-[FNReference large32BitIcon] in FNReferenceGlue.o
-[FNReference large4BitIcon] in FNReferenceGlue.o
-[FNReference large8BitIcon] in FNReferenceGlue.o
-[FNReference large8BitMask] in FNReferenceGlue.o
-[FNReference largeMonochromeIconAndMask] in FNReferenceGlue.o
-[FNReference listViewOptions] in FNReferenceGlue.o
-[FNReference localVolume] in FNReferenceGlue.o
-[FNReference location] in FNReferenceGlue.o
-[FNReference locked] in FNReferenceGlue.o
-[FNReference maximumWidth] in FNReferenceGlue.o
-[FNReference minimumSize] in FNReferenceGlue.o
-[FNReference minimumWidth] in FNReferenceGlue.o
-[FNReference modal] in FNReferenceGlue.o
-[FNReference modificationDate] in FNReferenceGlue.o
-[FNReference name] in FNReferenceGlue.o
-[FNReference nameExtension] in FNReferenceGlue.o
-[FNReference newWindowTarget] in FNReferenceGlue.o
-[FNReference newWindowsOpenInColumnView] in FNReferenceGlue.o
-[FNReference opensInClassic] in FNReferenceGlue.o
-[FNReference originalItem] in FNReferenceGlue.o
-[FNReference owner] in FNReferenceGlue.o
-[FNReference ownerPrivileges] in FNReferenceGlue.o
-[FNReference partitionSpaceUsed] in FNReferenceGlue.o
-[FNReference physicalSize] in FNReferenceGlue.o
-[FNReference position] in FNReferenceGlue.o
-[FNReference preferredSize] in FNReferenceGlue.o
-[FNReference productVersion] in FNReferenceGlue.o
-[FNReference properties] in FNReferenceGlue.o
-[FNReference resizable] in FNReferenceGlue.o
-[FNReference selection] in FNReferenceGlue.o
-[FNReference showsIcon] in FNReferenceGlue.o
-[FNReference showsIconPreview] in FNReferenceGlue.o
-[FNReference showsItemInfo] in FNReferenceGlue.o
-[FNReference showsPreviewColumn] in FNReferenceGlue.o
-[FNReference sidebarWidth] in FNReferenceGlue.o
-[FNReference size] in FNReferenceGlue.o
-[FNReference small32BitIcon] in FNReferenceGlue.o
-[FNReference small4BitIcon] in FNReferenceGlue.o
-[FNReference small8BitIcon] in FNReferenceGlue.o
-[FNReference small8BitMask] in FNReferenceGlue.o
-[FNReference smallMonochromeIconAndMask] in FNReferenceGlue.o
-[FNReference sortColumn] in FNReferenceGlue.o
-[FNReference sortDirection] in FNReferenceGlue.o
-[FNReference startup] in FNReferenceGlue.o
-[FNReference startupDisk] in FNReferenceGlue.o
-[FNReference stationery] in FNReferenceGlue.o
-[FNReference statusbarVisible] in FNReferenceGlue.o
-[FNReference suggestedSize] in FNReferenceGlue.o
-[FNReference target] in FNReferenceGlue.o
-[FNReference textSize] in FNReferenceGlue.o
-[FNReference titled] in FNReferenceGlue.o
-[FNReference toolbarVisible] in FNReferenceGlue.o
-[FNReference totalPartitionSize] in FNReferenceGlue.o
-[FNReference trash] in FNReferenceGlue.o
-[FNReference usesRelativeDates] in FNReferenceGlue.o
-[FNReference version ] in FNReferenceGlue.o
-[FNReference visible] in FNReferenceGlue.o
-[FNReference warnsBeforeEmptying] in FNReferenceGlue.o
-[FNReference width] in FNReferenceGlue.o
-[FNReference window] in FNReferenceGlue.o
-[FNReference zoomable] in FNReferenceGlue.o
-[FNReference zoomed] in FNReferenceGlue.o
-[FNReference first] in FNReferenceGlue.o
-[FNReference middle] in FNReferenceGlue.o
-[FNReference last] in FNReferenceGlue.o
-[FNReference any] in FNReferenceGlue.o
-[FNReference at:] in FNReferenceGlue.o
-[FNReference byIndex:] in FNReferenceGlue.o
-[FNReference byName:] in FNReferenceGlue.o
-[FNReference byID:] in FNReferenceGlue.o
-[FNReference previous:] in FNReferenceGlue.o
-[FNReference next:] in FNReferenceGlue.o
-[FNReference at:to:] in FNReferenceGlue.o
-[FNReference byRange:to:] in FNReferenceGlue.o
-[FNReference byTest:] in FNReferenceGlue.o
-[FNReference beginning] in FNReferenceGlue.o
-[FNReference end] in FNReferenceGlue.o
-[FNReference before] in FNReferenceGlue.o
-[FNReference after] in FNReferenceGlue.o
-[FNReference greaterThan:] in FNReferenceGlue.o
-[FNReference greaterOrEquals:] in FNReferenceGlue.o
-[FNReference equals:] in FNReferenceGlue.o
-[FNReference notEquals:] in FNReferenceGlue.o
-[FNReference lessThan:] in FNReferenceGlue.o
-[FNReference lessOrEquals:] in FNReferenceGlue.o
-[FNReference beginsWith:] in FNReferenceGlue.o
-[FNReference endsWith:] in FNReferenceGlue.o
-[FNReference contains:] in FNReferenceGlue.o
-[FNReference isIn:] in FNReferenceGlue.o
-[FNReference AND:] in FNReferenceGlue.o
-[FNReference OR:] in FNReferenceGlue.o
-[FNReference NOT] in FNReferenceGlue.o
"OBJC_IVAR $ASReference.AS_aemReference", referenced from:
-[FNReference description] in FNReferenceGlue.o
-[FNReference FinderWindows] in FNReferenceGlue.o
-[FNReference aliasFiles] in FNReferenceGlue.o
-[FNReference aliasList] in FNReferenceGlue.o
-[FNReference application] in FNReferenceGlue.o
-[FNReference applicationFiles] in FNReferenceGlue.o
-[FNReference applicationProcesses] in FNReferenceGlue.o
-[FNReference clippingWindows] in FNReferenceGlue.o
-[FNReference clippings] in FNReferenceGlue.o
-[FNReference columns] in FNReferenceGlue.o
-[FNReference computerObject] in FNReferenceGlue.o
-[FNReference containers] in FNReferenceGlue.o
-[FNReference deskAccessoryProcesses] in FNReferenceGlue.o
-[FNReference desktopObject] in FNReferenceGlue.o
-[FNReference desktopWindow] in FNReferenceGlue.o
-[FNReference disks] in FNReferenceGlue.o
-[FNReference documentFiles] in FNReferenceGlue.o
-[FNReference files] in FNReferenceGlue.o
-[FNReference folders] in FNReferenceGlue.o
-[FNReference iconFamily] in FNReferenceGlue.o
-[FNReference internetLocationFiles] in FNReferenceGlue.o
-[FNReference items] in FNReferenceGlue.o
-[FNReference label] in FNReferenceGlue.o
-[FNReference packages] in FNReferenceGlue.o
-[FNReference preferences] in FNReferenceGlue.o
-[FNReference preferencesWindow] in FNReferenceGlue.o
-[FNReference processes] in FNReferenceGlue.o
-[FNReference trashObject] in FNReferenceGlue.o
-[FNReference windows] in FNReferenceGlue.o
-[FNReference FinderPreferences] in FNReferenceGlue.o
-[FNReference URL] in FNReferenceGlue.o
-[FNReference acceptsHighLevelEvents] in FNReferenceGlue.o
-[FNReference acceptsRemoteEvents] in FNReferenceGlue.o
-[FNReference allNameExtensionsShowing] in FNReferenceGlue.o
-[FNReference applicationFile] in FNReferenceGlue.o
-[FNReference arrangement] in FNReferenceGlue.o
-[FNReference backgroundColor] in FNReferenceGlue.o
-[FNReference backgroundPicture] in FNReferenceGlue.o
-[FNReference bounds] in FNReferenceGlue.o
-[FNReference calculatesFolderSizes] in FNReferenceGlue.o
-[FNReference capacity] in FNReferenceGlue.o
-[FNReference class ] in FNReferenceGlue.o
-[FNReference clipboard] in FNReferenceGlue.o
-[FNReference clippingWindow] in FNReferenceGlue.o
-[FNReference closeable] in FNReferenceGlue.o
-[FNReference collapsed] in FNReferenceGlue.o
-[FNReference color] in FNReferenceGlue.o
-[FNReference columnViewOptions] in FNReferenceGlue.o
-[FNReference comment] in FNReferenceGlue.o
-[FNReference completelyExpanded] in FNReferenceGlue.o
-[FNReference computerContainer] in FNReferenceGlue.o
-[FNReference container] in FNReferenceGlue.o
-[FNReference containerWindow] in FNReferenceGlue.o
-[FNReference creationDate] in FNReferenceGlue.o
-[FNReference creatorType] in FNReferenceGlue.o
-[FNReference currentPanel] in FNReferenceGlue.o
-[FNReference currentView] in FNReferenceGlue.o
-[FNReference delayBeforeSpringing] in FNReferenceGlue.o
-[FNReference description ] in FNReferenceGlue.o
-[FNReference deskAccessoryFile] in FNReferenceGlue.o
-[FNReference desktop] in FNReferenceGlue.o
-[FNReference desktopPicture] in FNReferenceGlue.o
-[FNReference desktopPosition] in FNReferenceGlue.o
-[FNReference desktopShowsConnectedServers] in FNReferenceGlue.o
-[FNReference desktopShowsExternalHardDisks] in FNReferenceGlue.o
-[FNReference desktopShowsHardDisks] in FNReferenceGlue.o
-[FNReference desktopShowsRemovableMedia] in FNReferenceGlue.o
-[FNReference disclosesPreviewPane] in FNReferenceGlue.o
-[FNReference disk] in FNReferenceGlue.o
-[FNReference displayedName] in FNReferenceGlue.o
-[FNReference ejectable] in FNReferenceGlue.o
-[FNReference entireContents] in FNReferenceGlue.o
-[FNReference everyonesPrivileges] in FNReferenceGlue.o
-[FNReference expandable] in FNReferenceGlue.o
-[FNReference expanded] in FNReferenceGlue.o
-[FNReference extensionHidden] in FNReferenceGlue.o
-[FNReference file] in FNReferenceGlue.o
-[FNReference fileType] in FNReferenceGlue.o
-[FNReference floating] in FNReferenceGlue.o
-[FNReference foldersOpenInNewWindows] in FNReferenceGlue.o
-[FNReference foldersSpringOpen] in FNReferenceGlue.o
-[FNReference format] in FNReferenceGlue.o
-[FNReference freeSpace] in FNReferenceGlue.o
-[FNReference frontmost] in FNReferenceGlue.o
-[FNReference group] in FNReferenceGlue.o
-[FNReference groupPrivileges] in FNReferenceGlue.o
-[FNReference hasScriptingTerminology] in FNReferenceGlue.o
-[FNReference home] in FNReferenceGlue.o
-[FNReference icon] in FNReferenceGlue.o
-[FNReference iconSize] in FNReferenceGlue.o
-[FNReference iconViewOptions] in FNReferenceGlue.o
-[FNReference id ] in FNReferenceGlue.o
-[FNReference ignorePrivileges] in FNReferenceGlue.o
-[FNReference index] in FNReferenceGlue.o
-[FNReference informationWindow] in FNReferenceGlue.o
-[FNReference insertionLocation] in FNReferenceGlue.o
-[FNReference item] in FNReferenceGlue.o
-[FNReference journalingEnabled] in FNReferenceGlue.o
-[FNReference kind] in FNReferenceGlue.o
-[FNReference labelIndex] in FNReferenceGlue.o
-[FNReference labelPosition] in FNReferenceGlue.o
-[FNReference large32BitIcon] in FNReferenceGlue.o
-[FNReference large4BitIcon] in FNReferenceGlue.o
-[FNReference large8BitIcon] in FNReferenceGlue.o
-[FNReference large8BitMask] in FNReferenceGlue.o
-[FNReference largeMonochromeIconAndMask] in FNReferenceGlue.o
-[FNReference listViewOptions] in FNReferenceGlue.o
-[FNReference localVolume] in FNReferenceGlue.o
-[FNReference location] in FNReferenceGlue.o
-[FNReference locked] in FNReferenceGlue.o
-[FNReference maximumWidth] in FNReferenceGlue.o
-[FNReference minimumSize] in FNReferenceGlue.o
-[FNReference minimumWidth] in FNReferenceGlue.o
-[FNReference modal] in FNReferenceGlue.o
-[FNReference modificationDate] in FNReferenceGlue.o
-[FNReference name] in FNReferenceGlue.o
-[FNReference nameExtension] in FNReferenceGlue.o
-[FNReference newWindowTarget] in FNReferenceGlue.o
-[FNReference newWindowsOpenInColumnView] in FNReferenceGlue.o
-[FNReference opensInClassic] in FNReferenceGlue.o
-[FNReference originalItem] in FNReferenceGlue.o
-[FNReference owner] in FNReferenceGlue.o
-[FNReference ownerPrivileges] in FNReferenceGlue.o
-[FNReference partitionSpaceUsed] in FNReferenceGlue.o
-[FNReference physicalSize] in FNReferenceGlue.o
-[FNReference position] in FNReferenceGlue.o
-[FNReference preferredSize] in FNReferenceGlue.o
-[FNReference productVersion] in FNReferenceGlue.o
-[FNReference properties] in FNReferenceGlue.o
-[FNReference resizable] in FNReferenceGlue.o
-[FNReference selection] in FNReferenceGlue.o
-[FNReference showsIcon] in FNReferenceGlue.o
-[FNReference showsIconPreview] in FNReferenceGlue.o
-[FNReference showsItemInfo] in FNReferenceGlue.o
-[FNReference showsPreviewColumn] in FNReferenceGlue.o
-[FNReference sidebarWidth] in FNReferenceGlue.o
-[FNReference size] in FNReferenceGlue.o
-[FNReference small32BitIcon] in FNReferenceGlue.o
-[FNReference small4BitIcon] in FNReferenceGlue.o
-[FNReference small8BitIcon] in FNReferenceGlue.o
-[FNReference small8BitMask] in FNReferenceGlue.o
-[FNReference smallMonochromeIconAndMask] in FNReferenceGlue.o
-[FNReference sortColumn] in FNReferenceGlue.o
-[FNReference sortDirection] in FNReferenceGlue.o
-[FNReference startup] in FNReferenceGlue.o
-[FNReference startupDisk] in FNReferenceGlue.o
-[FNReference stationery] in FNReferenceGlue.o
-[FNReference statusbarVisible] in FNReferenceGlue.o
-[FNReference suggestedSize] in FNReferenceGlue.o
-[FNReference target] in FNReferenceGlue.o
-[FNReference textSize] in FNReferenceGlue.o
-[FNReference titled] in FNReferenceGlue.o
-[FNReference toolbarVisible] in FNReferenceGlue.o
-[FNReference totalPartitionSize] in FNReferenceGlue.o
-[FNReference trash] in FNReferenceGlue.o
-[FNReference usesRelativeDates] in FNReferenceGlue.o
-[FNReference version ] in FNReferenceGlue.o
-[FNReference visible] in FNReferenceGlue.o
-[FNReference warnsBeforeEmptying] in FNReferenceGlue.o
-[FNReference width] in FNReferenceGlue.o
-[FNReference window] in FNReferenceGlue.o
-[FNReference zoomable] in FNReferenceGlue.o
-[FNReference zoomed] in FNReferenceGlue.o
-[FNReference first] in FNReferenceGlue.o
-[FNReference middle] in FNReferenceGlue.o
-[FNReference last] in FNReferenceGlue.o
-[FNReference any] in FNReferenceGlue.o
-[FNReference at:] in FNReferenceGlue.o
-[FNReference byIndex:] in FNReferenceGlue.o
-[FNReference byName:] in FNReferenceGlue.o
-[FNReference byID:] in FNReferenceGlue.o
-[FNReference previous:] in FNReferenceGlue.o
-[FNReference next:] in FNReferenceGlue.o
-[FNReference at:to:] in FNReferenceGlue.o
-[FNReference byRange:to:] in FNReferenceGlue.o
-[FNReference byTest:] in FNReferenceGlue.o
-[FNReference beginning] in FNReferenceGlue.o
-[FNReference end] in FNReferenceGlue.o
-[FNReference before] in FNReferenceGlue.o
-[FNReference after] in FNReferenceGlue.o
-[FNReference greaterThan:] in FNReferenceGlue.o
-[FNReference greaterOrEquals:] in FNReferenceGlue.o
-[FNReference equals:] in FNReferenceGlue.o
-[FNReference notEquals:] in FNReferenceGlue.o
-[FNReference lessThan:] in FNReferenceGlue.o
-[FNReference lessOrEquals:] in FNReferenceGlue.o
-[FNReference beginsWith:] in FNReferenceGlue.o
-[FNReference endsWith:] in FNReferenceGlue.o
-[FNReference contains:] in FNReferenceGlue.o
-[FNReference isIn:] in FNReferenceGlue.o
-[FNReference AND:] in FNReferenceGlue.o
-[FNReference OR:] in FNReferenceGlue.o
-[FNReference NOT] in FNReferenceGlue.o
“OBJC_CLASS $_ASConstant”, referenced from:
OBJC_CLASS $_FNConstant in FNConstantGlue.o
"OBJC_IVAR $ASCommand.AS_event", referenced from:
-[FNCleanUpCommand by:] in FNCommandGlue.o
-[FNCountCommand each:] in FNCommandGlue.o
-[FNDataSizeCommand as:] in FNCommandGlue.o
-[FNDuplicateCommand replacing:] in FNCommandGlue.o
-[FNDuplicateCommand routingSuppressed:] in FNCommandGlue.o
-[FNDuplicateCommand to:] in FNCommandGlue.o
-[FNEmptyCommand security:] in FNCommandGlue.o
-[FNMakeCommand at:] in FNCommandGlue.o
-[FNMakeCommand new :] in FNCommandGlue.o
-[FNMakeCommand to:] in FNCommandGlue.o
-[FNMakeCommand withProperties:] in FNCommandGlue.o
-[FNMoveCommand positionedAt:] in FNCommandGlue.o
-[FNMoveCommand replacing:] in FNCommandGlue.o
-[FNMoveCommand routingSuppressed:] in FNCommandGlue.o
-[FNMoveCommand to:] in FNCommandGlue.o
-[FNOpenCommand using:] in FNCommandGlue.o
-[FNOpenCommand withProperties:] in FNCommandGlue.o
-[FNOpenLocationCommand window:] in FNCommandGlue.o
-[FNPrintCommand withProperties:] in FNCommandGlue.o
-[FNSetCommand to:] in FNCommandGlue.o
-[FNSortCommand by:] in FNCommandGlue.o
-[FNUpdateCommand necessity:] in FNCommandGlue.o
-[FNUpdateCommand registeringApplications:] in FNCommandGlue.o
“OBJC_METACLASS $_ASConstant”, referenced from:
OBJC_METACLASS $_FNConstant in FNConstantGlue.o
“OBJC_CLASS $_ASReference”, referenced from:
OBJC_CLASS $_FNReference in FNReferenceGlue.o
“OBJC_CLASS $_AEMQuery”, referenced from:
__objc_classrefs__DATA@0 in FNApplicationGlue.o
“OBJC_CLASS $_AEMApplication”, referenced from:
__objc_classrefs__DATA@0 in FNApplicationGlue.o
“OBJC_CLASS $_AEMCustomRoot”, referenced from:
__objc_classrefs__DATA@0 in FNApplicationGlue.o
“OBJC_CLASS $_ASReferenceRenderer”, referenced from:
OBJC_CLASS $_FNReferenceRenderer in FNReferenceRendererGlue.o
“OBJC_CLASS $_AEMCurrentContainerRoot”, referenced from:
__objc_classrefs__DATA@0 in FNReferenceGlue.o
“OBJC_METACLASS $_ASCommand”, referenced from:
OBJC_METACLASS $_FNCommand in FNCommandGlue.o
“OBJC_METACLASS $_ASReference”, referenced from:
OBJC_METACLASS $_FNReference in FNReferenceGlue.o
“OBJC_CLASS $_AEMObjectBeingExaminedRoot”, referenced from:
__objc_classrefs__DATA@0 in MAFolder_Controller.o
__objc_classrefs__DATA@0 in FNReferenceGlue.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Many Thanks
hhas
November 27, 2009, 8:54pm
#32
Make sure you build the Appscript framework as 2- or 4-way universal using the 10.4 or 10.5 SDK. I forget which configurations are in svn, but it sounds like you’re probably building the Debug version, which isn’t what you want. If none of the configurations currently in the project suit your needs, you can edit existing/create new configurations by selecting Targets->Appscript in the Groups&Files pane and clicking Cmd-I. If you’re not sure how to do that, I suggest you list all your requirements (universal; 32-bit or 32- and 64-bit?; garbage collection off/optional/required?; minimum OS version? for installing in a Library/Frameworks folder or embedding in a .app bundle?) and myself or someone familiar with Xcode can talk you through it.
hhas
December 4, 2009, 9:12pm
#33
FWIW, I’ve just checked in an update to objc-appscript in appscript’s Subversion repository that provides a better selection of ready-made build options.
HTH