HomeAppleAutomator: Error when working a Phrase Rely service in TextEdit

Automator: Error when working a Phrase Rely service in TextEdit


I adopted a quick step-by-step information for including phrase depend performance to TextEdit.

Notice that the information instructs: "It’ll ask you to decide on a kind in your doc; click on Service". Nevertheless, in all probability as a result of model variations, as a substitute one should select Fast Motion.

Automator: Error when working a Phrase Rely service in TextEdit

Because the information advises, I used this code:

osascript inform utility “TextEdit” set word_count to depend phrases of doc 1 set char_count to depend characters of doc 1 set show_words to (word_count as string) & ” phrases. (” & (char_count as string) & ” characters.)” set dialog_title to “TextEdit Phrase Rely” show dialog show_words with icon 1 with title dialog_title buttons {“Okay”} default button “Okay” finish inform AppleScriptHereDoc

After creating the Motion / Service and working it, I get the next error:

The motion “Run Shell Script” encountered an error: “-: -c: line 0: syntax error close to sudden token `('
-: -c: line 0: `osascript inform utility “TextEdit” set word_count to depend phrases of doc 1 set char_count to depend characters of doc 1 set show_words to (word_count as string) & ” phrases. (” & (char_count as string) & ” characters.)” set dialog_title to “TextEdit Phrase Rely” show dialog show_words with icon 1 with title dialog_title buttons {“Okay”} default button “Okay” finish inform AppleScriptHereDoc'”

The information is from Feb 23, 2018 (over 5 years in the past on the time of this writing), so which will have one thing to do with it. Hopefully there is a easy repair although.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments