<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - Macro Execution (playback) Error - Comments</title>
 <link>http://community.activestate.com/forum-topic/macro-execution-playback-error</link>
 <description>Comments for &quot;Macro Execution (playback) Error&quot;</description>
 <language>en</language>
<item>
 <title>next time</title>
 <link>http://community.activestate.com/forum-topic/macro-execution-playback-error#comment-4140</link>
 <description>&lt;p&gt;Hi, JeffG. It&#039;s unfortunate that-- having just now viewed your helpful reply, the erroneous macro is long gone.&lt;/p&gt;
&lt;p&gt;if i think of it, i&#039;ll try it again and-- if the same error results-- i&#039;ll post the code at that time.&lt;/p&gt;
&lt;p&gt;best regards.&lt;/p&gt;
&lt;p&gt;-js&lt;/p&gt;
&lt;p&gt;--&lt;br /&gt;
Novice Developer?&lt;br /&gt;
Check out NoviceNotes.Net&lt;/p&gt;
</description>
 <pubDate>Mon, 11 Feb 2008 13:50:50 -0800</pubDate>
 <dc:creator>Stanley_Tweedle</dc:creator>
 <guid isPermaLink="false">comment 4140 at http://community.activestate.com</guid>
</item>
<item>
 <title>Source of the Macro?</title>
 <link>http://community.activestate.com/forum-topic/macro-execution-playback-error#comment-4055</link>
 <description>&lt;p&gt;Can you post back with the source of this Macro? Right-click on the Macro in your toolbox and select either &#039;Properties&#039; or &#039;Edit&#039; to view the source created by the Macro recording.&lt;/p&gt;
&lt;p&gt;--&lt;br /&gt;
JeffG&lt;/p&gt;
</description>
 <pubDate>Sun, 03 Feb 2008 19:16:00 -0800</pubDate>
 <dc:creator>jeffg</dc:creator>
 <guid isPermaLink="false">comment 4055 at http://community.activestate.com</guid>
</item>
<item>
 <title>Macro Execution (playback) Error</title>
 <link>http://community.activestate.com/forum-topic/macro-execution-playback-error</link>
 <description>&lt;p&gt;Hi there. (mods, please note the possibility that this should be in &#039;Macros&#039; vs. &#039;Open Komodo&#039;. thanks!)&lt;/p&gt;
&lt;p&gt;I&#039;m merely writing here to report an error i received when attempting to play my first macro. It&#039;s not shocking that it didn&#039;t function as i expected, considering that the macro recorded a Search / Replace replace function.&lt;/p&gt;
&lt;p&gt;PREFACE:&lt;br /&gt;
Having just created a new document (from My Templates) in &lt;/p&gt;
&lt;pre&gt;Komodo Edit, version 4.2.1, build 283000, platform win32-x86.
Built on Tue Nov 13 14:27:17 2007.&lt;/pre&gt;&lt;p&gt;I saved the doc, then executed the &lt;em&gt;Preview&lt;/em&gt; command, &lt;em&gt;Configured Browser&lt;/em&gt; to preview from within the Komodo Edit UI (Open Komodo). Consistent with the default action, a Komodo Edit dialogue prompts me to configure the URL i&#039;d like to use for previewing the active file. Taking the lazy, time-saver route, i chose to use that string which Komodo places into the dialogue by default. &lt;/p&gt;
&lt;p&gt;Hopefully, the impressively thorough Open Komodo development contributors will include a &lt;em&gt;fix&lt;/em&gt; for the string which appears under Option: &#039;Preview with another File or URL&#039;, so that the solidus character is consistent with the req of http protocol-- but currently (on the Windows platform) the &lt;em&gt;Path&lt;/em&gt; is inserted into that text field in Windows filesystem format-- that is, with a Reverse Solidus (this, my expert assessment from 2-days experience i have with the extraordinary IDE). One might infer (and one would be correct, in this instance) tha the Reverse Solidus is encoded, from ASCII to Hex, as &#039;%5c&#039;, thus creating an invalid URL, and no preview.&lt;/p&gt;
&lt;p&gt;SPECIFICS OF THIS ERROR:&lt;br /&gt;
I attempted to &#039;workaround&#039; this minor issue by creating a macro (as i&#039;ve done in other applications), where I would copy-to-clipboard the FULL PATH of the active file, paste it-- commented-- into the file itself, select only that full path string then hit &lt;em&gt;&lt;strong&gt;Record&lt;/strong&gt;&lt;/em&gt;, open a &lt;em&gt;Replace&lt;/em&gt; dialouge, configure the replace function to search for the character &amp;#92; in the string, and replace it with &amp;#47; , thereby transforming the default Komodo-placed URL string from the &lt;em&gt;Preview&lt;/em&gt; dialogue, into one which will accurately point to the URI (i.e. my new file) -- that is, the default string transformed into an HTTP formatted URL by merely changing each instance of a single character, the Reverse Solidus. (BLAH! sorry-- i wish i were concise too!)&lt;/p&gt;
&lt;p&gt;anyway-- so the macro didn&#039;t work (when i tested it, same file, pasing same string, etc.). &lt;/p&gt;
&lt;p&gt;i&#039;ve experienced the &lt;em&gt;same&lt;/em&gt; macro functioning okay in other Editor components, so i trust it&#039;s a viable method. the following is the error feedback upon the macro failing...&lt;/p&gt;
&lt;pre class=&quot;geshifilter&quot;&gt;Syntax error in macro:

exception[message] = unterminated string literal
exception[fileName] = chrome://komodo/content/project/peMacro.js
exception[lineNumber] = 445
exception[stack] = ()@:0
macro_evalAsJavascript()@:0
eval(&quot;function() { \n// Macro recorded on Sun Feb 03 2008 10:22:43 GMT-0500 (Eastern Standard Time)\nkomodo.assertMacroVersion(2);\nif (komodo.view) { komodo.view.setFocus() };\nFind_ReplaceAllInMacro(window, 1, &#039;\\&#039;, &#039;/&#039;, false, 0, 0, false, false);\n\n }; &quot;)@:0
macro_evalAsJavascript(&quot;// Macro recorded on Sun Feb 03 2008 10:22:43 GMT-0500 (Eastern Standard Time)\nkomodo.assertMacroVersion(2);\nif (komodo.view) { komodo.view.setFocus() };\nFind_ReplaceAllInMacro(window, 1, &#039;\\&#039;, &#039;/&#039;, false, 0, 0, false, false);\n&quot;)@chrome://komodo/content/project/peMacro.js:441
([object Array])@chrome://komodo/content/library/macros.js:158
()@chrome://komodo/content/library/macros.js:171
()@chrome://komodo/content/editor.js:184
(&quot;cmd_executeLastMacro&quot;)@chrome://xtk/content/controller.js:61
doCommand(&quot;cmd_executeLastMacro&quot;)@:0
command_doCommand(&quot;cmd_executeLastMacro&quot;)@chrome://komodo/content/library/commands.js:244
@chrome://komodo/content/library/commands.js:205

exception[name] = SyntaxError&lt;/pre&gt;&lt;p&gt;
thanks. sorry for the extra-long text here, but it made sense to give the BG when i started the topic!&lt;br /&gt;
;-)&lt;/p&gt;
&lt;p&gt;oh, BTW-- holy cow! Komodo Edit / Open Komodo is... i dunno-- i&#039;m at a loss for words for &#039;totally the best /free/ integrated development envioronment i&#039;ve ever tried!!!&#039;. THIS truly must be the future of the web dev editor! how exciting to be on-board this early in the game.&lt;/p&gt;
&lt;p&gt;:-)&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/macro-execution-playback-error#comments</comments>
 <category domain="http://community.activestate.com/forums/open-komodo">Open Komodo</category>
 <category domain="http://community.activestate.com/os/windows-xp-pro">Windows XP Pro</category>
 <pubDate>Sun, 03 Feb 2008 08:26:18 -0800</pubDate>
 <dc:creator>Stanley_Tweedle</dc:creator>
 <guid isPermaLink="false">1882 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
