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. ⚠️

Next capture settings to apply styles in Applescript

Comments

1 comment

  • Matthew Hafez
    Okay, I found what I was doing wrong here. Solved.

    I had to have a "tell" for next capture settings of document 1, then set the settings in text.
    like this:

    tell document 1
    set capture name to scanResult
    set capture counter to 0
    end tell
    if P = "pr2" then
    tell next capture settings of document 1
    set apply styles to {"nameofstyle1"}
    end tell
    else if P = "pr3" then
    tell next capture settings of document 1
    set apply styles to {"nameofstyle2"}
    end tell
    -- display dialog "You Picked pr2 " & scanResult default button 1
    end if


    Hope this information is helpful to somebody, as I find this forum a great source of knowledge.

    Cheers.
    0

Post is closed for comments.