Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Applescript appears garbled
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ReallyRandy" data-source="post: 1644424" data-attributes="member: 186852"><p>I have several Applescripts that wrote recently that work perfectly but when I open them in Script Editor they look garbled.</p><p></p><p>Here is an example snippet:</p><p></p><p>--find the line that the thumbs tag is on</p><p> «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}</p><p> copy the «class SLin» of «class pusl» of window 1 to thumbsLineCount</p><p></p><p>This is what it's supposed to look like:</p><p></p><p> --find the line that the thumbs tag is on</p><p> 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</p><p> copy the startLine of selection of window 1 to thumbsLineCount</p><p></p><p>Sometimes Script Editor will open them fine and sometimes they're all garbled. I'm on Yosemite with all the latest updates.</p><p></p><p>Does anyone know what's going on?</p><p></p><p>Thanks</p></blockquote><p></p>
[QUOTE="ReallyRandy, post: 1644424, member: 186852"] 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? Thanks [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Applescript appears garbled
Top