Script Editor Displaying garbled Applescript

Discussion in 'Mac Programming' started by ReallyRandy, Mar 1, 2015.

  1. ReallyRandy macrumors newbie

    Mar 1, 2015
    I have several Applescripts that wrote recently that work perfectly but when I open them in Script Editor they look garbled.

    Here is an example snippet:

    --find the line that the thumbs tag is on
    «event R*chFind» thumbsLine with «class SelM» given «class FnIn»:text 1 of «class TxtW» 1, «class Opts»:{«class SMod»:text, «class STop»:true, «class Rvrs»:false, «class Case»:false, «class Wrds»:false, «class ExSl»:false}
    copy the «class SLin» of «class pusl» of window 1 to thumbsLineCount

    This is what it's supposed to look like:

    --find the line that the thumbs tag is on
    find thumbsLine searching in text 1 of text window 1 options {search mode:text, starting at top:true, backwards:false, case sensitive:false, match words:false, extend selection:false} with selecting match
    copy the startLine of selection of window 1 to thumbsLineCount

    Sometimes Script Editor will open them fine and sometimes they're all garbled. I'm on Yosemite with all the latest updates.

    Does anyone know what's going on?

  2. superscape macrumors 6502a


    Feb 12, 2008
    East Riding of Yorkshire, UK

    Not 100% certain, but the first thing I'd check is whether you still have the app you're scripting installed. And whether its the latest version.

Share This Page