Skip to main content

⚠️ Please note that this topic or post has been archived. The information contained here may no longer be accurate or up-to-date. ⚠️

Does anyone know how to use the AppleScript dictionary?

Comments

4 comments

  • nordtech
    Never mind, I figured it out.
    0
  • Mispel3991
    I am interessed in making scripts. What was way to do it?
    0
  • nordtech
    If you look at the AppleScript dictionary for Capture One, you will see that 'output' is a property of 'document'. What I failed to do was properly address who 'output' belonged to- a 'document'. Therefore my script needed to look like this:

    tell application "Capture One 8"
    set output of document 1 to (myPath as alias)
    end tell

    By not declaring output as part of a document, it did not know what output was a part of.

    Martin,
    It sounds like you may not be that familiar with AppleScript. My apologies if the following information is too elementary. AppleScript dictionaries provide you with information that lets you know what you can script in an application. If the program has a dictionary, you can view it in AppleScript Editor or Script Editor (depending on what version of Mac OS X you have). In order to utilize the items in a dictionary, you will need to create a tell block identifying what application you are attempting to talk to. That is why the 'set output…' line is encased in the tell block above. If I did not declare 'tell application "Capture One 8" before the 'set output…' command, it will return an error when compiling.

    Good luck with your scripting endeavors. If you have not already found macscripter.com, that is an excellent resource for learning how to use AppleScript. I hope that helps!
    0
  • Mispel3991
    Hi Nordtech,

    I missed your anwser from December 🤭 I found Macscripter and will give it another try.
    And you are right. I have only little experience AppleScript, but I understand what you mean.
    0

Post is closed for comments.