On Mar 23, 2009, at 6:28 AM, Michael Tsai wrote:
On Mar 23, 2009, at 12:19 AM, Adam R. Maxwell wrote:
Using the MDItem C API had none of the AppleScript/Apple event
problems, and was a small fraction of the code.
On the other hand, MDItem will probably fail if the file is on a
volume for
On Mar 23, 2009, at 12:19 AM, Adam R. Maxwell wrote:
Using the MDItem C API had none of the AppleScript/Apple event
problems, and was a small fraction of the code.
On the other hand, MDItem will probably fail if the file is on a
volume for which Spotlight is disabled or its index isn't up-t
On Mar 22, 2009, at 8:54 PM, Michael Ash wrote:
On Sun, Mar 22, 2009 at 1:53 PM, Steve Cronin
wrote:
Adam;
I'm an ObjC guy -- I generally avoid the C stuff if possible -
'cause I have
to support my own code.
In addition to what the others have said, avoiding the C stuff if
possible but
On Sun, Mar 22, 2009 at 1:53 PM, Steve Cronin wrote:
> Adam;
>
> I'm an ObjC guy -- I generally avoid the C stuff if possible - 'cause I have
> to support my own code.
In addition to what the others have said, avoiding the C stuff if
possible but being perfectly happy to use *AppleScript*, of all
On Mar 22, 2009, at 1:53 PM, Steve Cronin wrote:
I'm an ObjC guy -- I generally avoid the C stuff if possible -
'cause I have to support my own code.
Objective-C is a superset of C. Avoiding the C stuff isn't really
possible - it is a core part of the language.
As far as choice of API, I
On Sun, Mar 22, 2009 at 1:53 PM, Steve Cronin wrote:
> I'm an ObjC guy -- I generally avoid the C stuff if possible - 'cause I have
> to support my own code.
You cannot reasonably expect to avoid C... there's a lot of
functionality Cocoa doesn't provide. Launch Services for example.
You're only
Adam;
I'm an ObjC guy -- I generally avoid the C stuff if possible - 'cause
I have to support my own code.
But your method seems like it will work not only as a replacement but
actually a doorway to the full gamut of common metadata attributes -
very nice!!
I know I should lose the resi
On Mar 21, 2009, at 10:38 AM, Steve Cronin wrote:
The 'theScript' is a valid script that executes flawlessly in
'Script Editor':
tell application "Finder"
try
comment of file ("/Users/steve/" as POSIX file)
on error
return "Error"
end
Matt;
I really take offense at your tone. I was not lying.
I merely clipped out my personal details in order not to provide them
to the world.
The 'theScript' IS a string - constructed in ObjC differently than you
show but a string nonetheless.
Turns out the error was that an SDEF file had
On Sat, 21 Mar 2009 12:38:11 -0500, Steve Cronin
said:
>Folks;
>
>I'm trying to get a string value back from a simple AppleScript in
>Cocoa:
>
>NSDictionary *errorDict= nil;
>NSAppleScript *appleScriptObject = [[NSAppleScript alloc]
>initWithSource:theScript];
>NSAppleEventDescriptor *eventDescri
On 2009 Mar 21, at 10:38, Steve Cronin wrote:
What am I overlooking here?
#0 0x9543c1ab in CFDataGetBytePtr
#1 0x90462218 in XMLDataResolvingXIncludes
#2 0x90464fa8 in OSACopyScriptingDefinition
#3 0x90861531 in -[NSScriptSuiteRegistry loadSuitesFromBundle:]
#4 0x90860ede
Folks;
I'm trying to get a string value back from a simple AppleScript in
Cocoa:
NSDictionary *errorDict= nil;
NSAppleScript *appleScriptObject = [[NSAppleScript alloc]
initWithSource:theScript];
NSAppleEventDescriptor *eventDescriptor = [appleScriptObject
executeAndReturnError: &errorDi
12 matches
Mail list logo