|
Re: TextEdit won't open a plain text file after writing to it with write cmd
I'm no longer sure what your question is. Neither use the suggested code. And the second one is problematic if the file already exists and is longer than the text you're writing.
--
Shane Stanley
I'm no longer sure what your question is. Neither use the suggested code. And the second one is problematic if the file already exists and is longer than the text you're writing.
--
Shane Stanley
|
By
Shane Stanley
·
#216
·
|
|
Re: TextEdit won't open a plain text file after writing to it with write cmd
Here's my script (copy pasted as plain text) and another following that one.
==============================================
property theText : ""
property theFile : missing value
property theSubject :
Here's my script (copy pasted as plain text) and another following that one.
==============================================
property theText : ""
property theFile : missing value
property theSubject :
|
By
Ilya Shebalin
·
#215
·
|
|
Re: TextEdit won't open a plain text file after writing to it with write cmd
No.
--
Shane Stanley <sstanley@...>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
No.
--
Shane Stanley <sstanley@...>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
|
By
Shane Stanley
·
#214
·
|
|
Re: TextEdit won't open a plain text file after writing to it with write cmd
The « and » characters are quotes in some languages, but they have a special meaning in AppleScript. You have to enter them exactly.
It would help trouble-shoot if you copied and pasted your code
The « and » characters are quotes in some languages, but they have a special meaning in AppleScript. You have to enter them exactly.
It would help trouble-shoot if you copied and pasted your code
|
By
Shane Stanley
·
#213
·
|
|
Re: TextEdit won't open a plain text file after writing to it with write cmd
Ooops...Through your question I think I'm onto smth. Yes I enclose it in quotes - just as given in the AppleScript guide I'm reading.
Ooops...Through your question I think I'm onto smth. Yes I enclose it in quotes - just as given in the AppleScript guide I'm reading.
|
By
Ilya Shebalin
·
#212
·
|
|
Re: TextEdit won't open a plain text file after writing to it with write cmd
Are you enclosing it in « and » characters?
--
Shane Stanley <sstanley@...>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
Are you enclosing it in « and » characters?
--
Shane Stanley <sstanley@...>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
|
By
Shane Stanley
·
#211
·
|
|
Re: TextEdit won't open a plain text file after writing to it with write cmd
Hi, Shane
I did that too, I tried every encoding that write cmd provide as a value of its as parameter. When I use "class utf8" I get an error.
Hi, Shane
I did that too, I tried every encoding that write cmd provide as a value of its as parameter. When I use "class utf8" I get an error.
|
By
Ilya Shebalin
·
#210
·
|
|
Re: TextEdit won't open a plain text file after writing to it with write cmd
You need to save the file as UTF-8 -- at the moment you're saving it in MacRoman. Change this:
to:
write theText to FileID as «class utf8»
--
Shane Stanley
You need to save the file as UTF-8 -- at the moment you're saving it in MacRoman. Change this:
to:
write theText to FileID as «class utf8»
--
Shane Stanley
|
By
Shane Stanley
·
#209
·
|
|
TextEdit won't open a plain text file after writing to it with write cmd
Hello,
I wrote a script that would act as an Automator service plug-in in Mail.app when placed to "Run AppleScript" action. It basically would extract the contents of a selected message along with its
Hello,
I wrote a script that would act as an Automator service plug-in in Mail.app when placed to "Run AppleScript" action. It basically would extract the contents of a selected message along with its
|
By
Ilya Shebalin
·
#208
·
|
|
Re: drafting/prototyping code ?
Thank you Jim.
I'm not really sure what I assume. I guess writing things down on paper would help too.
JC
Jean-Christophe
Thank you Jim.
I'm not really sure what I assume. I guess writing things down on paper would help too.
JC
Jean-Christophe
|
By
Jean-Christophe Helary <jean.christophe.helary@...>
·
#207
·
|
|
Re: drafting/prototyping code ?
Assuming you meant "rich text", I think we need a bit more info about your requirements/specification.
Are you looking for one tool that will support everything: rich text, code blocks, diagramming,
Assuming you meant "rich text", I think we need a bit more info about your requirements/specification.
Are you looking for one tool that will support everything: rich text, code blocks, diagramming,
|
By
JMichaelTX
·
#206
·
|
|
drafting/prototyping code ?
I already have a number of scripts that I'd like to "merge" but before that I want to draft or prototype with real text mixed with code and maybe graphs to get a better idea of the flow.
What would
I already have a number of scripts that I'd like to "merge" but before that I want to draft or prototype with real text mixed with code and maybe graphs to get a better idea of the flow.
What would
|
By
Jean-Christophe Helary <jean.christophe.helary@...>
·
#205
·
|
|
Auto mount .dmg in High Sierra? Possible??
G’day Scripters
You’ve been most fortunate. I’ve been laid up in hospital for 4 months quite ill, and have not had access to my iMac in that time.
However, I’m quite well now, and ready to
G’day Scripters
You’ve been most fortunate. I’ve been laid up in hospital for 4 months quite ill, and have not had access to my iMac in that time.
However, I’m quite well now, and ready to
|
By
Brian Christmas
·
#204
·
|
|
[ANN] Script Debugger 7 released
Late Night Software has released Script Debugger 7, the latest version of its award-winning AppleScript development software. The upgrade introduces Script Debugger Lite, several new features and a
Late Night Software has released Script Debugger 7, the latest version of its award-winning AppleScript development software. The upgrade introduces Script Debugger Lite, several new features and a
|
By
Shane Stanley
·
#203
·
|
|
Re: Generic XML generation with AppleScriptObjectiveC (introduction)
Thank you for the comments. I eventually posted the thing here after a number of modifications:
https://mac4translators.blogspot.jp/2018/02/this-article-is-attempt-at-putting.html
Jean-Christophe
Thank you for the comments. I eventually posted the thing here after a number of modifications:
https://mac4translators.blogspot.jp/2018/02/this-article-is-attempt-at-putting.html
Jean-Christophe
|
By
Jean-Christophe Helary <jean.christophe.helary@...>
·
#202
·
|
|
Generic XML generation with AppleScriptObjectiveC (introduction)
-- This document is intended for my blog, but I thought that I'd share it here first, just in case there are comments/suggestions/questions, etc. Including the code, it is 3000 words. It's trivial for
-- This document is intended for my blog, but I thought that I'd share it here first, just in case there are comments/suggestions/questions, etc. Including the code, it is 3000 words. It's trivial for
|
By
Jean-Christophe Helary <jean.christophe.helary@...>
·
#201
·
|
|
Re: Is i possible hide AppleScript "do shell script" commands from bash/bash history?
It sounds like it removes the vulnerability of stored variable values.
--
Shane Stanley <sstanley@...>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
It sounds like it removes the vulnerability of stored variable values.
--
Shane Stanley <sstanley@...>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
|
By
Shane Stanley
·
#200
·
|
|
Re: Is i possible hide AppleScript "do shell script" commands from bash/bash history?
My primary interest in using AS is in conjunction with a Filemaker app, where Filemaker creates and stores the AS within a calculated FM script (which is then hidden from the user, and passes the
My primary interest in using AS is in conjunction with a Filemaker app, where Filemaker creates and stores the AS within a calculated FM script (which is then hidden from the user, and passes the
|
By
David Wegener laptop
·
#199
·
|
|
Re: Is i possible hide AppleScript "do shell script" commands from bash/bash history?
Hi All,
I recommended that davew@... post on this list.
Here is my earlier reply to his
Hi All,
I recommended that davew@... post on this list.
Here is my earlier reply to his
|
By
twhite_L1@twdesigns.com
·
#198
·
|
|
Re: Accelerator keys in displayed buttons
I found a new one: when adding a file extension to a file, Finder asks "Add ..." and "Don't add ..." and Cmd+A triggers "Add ..."
Jean-Christophe
I found a new one: when adding a file extension to a file, Finder asks "Add ..." and "Don't add ..." and Cmd+A triggers "Add ..."
Jean-Christophe
|
By
Jean-Christophe Helary <jean.christophe.helary@...>
·
#197
·
|