Having gone through the posts in this section (and all over the internet) I haven’t figured out how to deal with simple objc calls:
on returnsTokens(theString, theDelimiter)
return call method "componentsSeparatedByString:" of theString with parameter theDelimiter
end returnsTokens -- of class NSString
Do I have to make an entire script for this with NSString as parent. I’ve tried. Strings in Applescript don’t seem to be NSStrings anymore in Snow Leopard. The call method doesn’t work. Nor does
return theString's componentsSeparatedByString_(theDelimiter)
or any variation I’ve tried in 2 days. This Snow leopard is extremely frustrating. I did go through Craig’s tutorials and they are very helpful.
Model: iMac7,1
AppleScript: XCode 3.2
Browser: Safari 531.9
Operating System: Mac OS X (10.6)