Obj-c Appscript In Depth

Discussion in 'Mac Programming' started by Warhaven, Mar 3, 2010.

  1. Warhaven macrumors newbie

    Joined:
    Mar 3, 2010
    #1
    Hey All,

    I see wikis for python appscript and ruby appscript, but nothing for obj-c appscript. Is there something more in depth than what comes with the trunk? I'm having a dickens of a time getting this to do what I want it to do, chiefly, request Pages to save every open document and then verify if said documents were saved or not.

    Was simple enough in AppleScript, but for the life of me I can't figure it out with what little bits are provided in the included docs.

    Thanks
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
  3. Warhaven thread starter macrumors newbie

    Joined:
    Mar 3, 2010
    #3
    Thanks. I'm brand new to the forums, but MacRumors came up often when I was searching for appscript-related things.

    [edit]

    Oh, wrong "appscript." I'm looking specifically for info pertaining to objc-appscript, not Apple's ObjC-AppleScript. I'm trying to keep things in Objective-C, as I've found that writing things in AppleScript Studio have been less than... what's the word. Consistent. I get erroneous quirks and controls in the past haven't behaved as expected. For me, anyway.
     
  4. hhas macrumors regular

    Joined:
    Oct 15, 2007
    #4
    Documentation and examples in the trunk are your starting point. However, appscript, like AppleScript, is just a modest layer of syntactic sugar over Apple events. So if you know how to write a command in AppleScript, try running it through ASTranslate to view the resulting Apple event in appscript syntax. And if you're still not sure, post some AppleScript code.
     

Share This Page