<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community : All Content - All Communities</title>
    <link>https://forums.adobe.com/</link>
    <description>All Content in Adobe Community</description>
    <language>en</language>
    <pubDate>Thu, 13 Nov 2014 02:41:47 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-11-13T02:41:47Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>AMD like module loading</title>
      <link>https://forums.adobe.com/thread/1633874</link>
      <description>&lt;!-- [DocumentBodyStart:05d1d680-5337-4e05-8602-6ad225685e3b] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi, I need some critics for the following code snippet. I am trying to implement an AMD like functionality with ESTK and was wondering if I was doing it the right way or the wrong way. ESTK already has the ability to load scripts via `#include` preprocessor but it loads the script at the current scope, which might lead to bigger problems like overriding local variables. My approach is to wrap this preprocessor with the `require()` function and do the script loading there. This way variable collision is avoided, considering `var` is explicitly used for all variable declarations.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;!--[CodeBlockStart:a43a52d3-9c3b-4eac-b46b-6d06cfa94301][excluded]--&gt;&lt;pre class="javascript" name="code"&gt;
function require(module) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var __module__;

&amp;nbsp;&amp;nbsp;&amp;nbsp; function define(callback) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __module__ = callback();
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; // eval is considered evil, I don't know if this could be an exception
&amp;nbsp;&amp;nbsp;&amp;nbsp; eval('#include "' + module + '";');

&amp;nbsp;&amp;nbsp;&amp;nbsp; // This also has the same result as above but I'm not sure which one is better or faster. 
&amp;nbsp;&amp;nbsp;&amp;nbsp; // $.evalFile(File(module));

&amp;nbsp;&amp;nbsp;&amp;nbsp; if (typeof __module__ === 'undefined') {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw('Module not loaded');
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; return __module__;
}


(function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp; // relative loading doesn't work. Yet.
&amp;nbsp;&amp;nbsp;&amp;nbsp; var moduleA = require('/absolute/path/to/modulea.jsx');
&amp;nbsp;&amp;nbsp;&amp;nbsp; var moduleB = require('/absolute/path/to/moduleb.jsx');

&amp;nbsp;&amp;nbsp;&amp;nbsp; $.writeln(moduleA.prop1);
&amp;nbsp;&amp;nbsp;&amp;nbsp; $.writeln(moduleA.prop2);

&amp;nbsp;&amp;nbsp;&amp;nbsp; $.writeln(moduleB.prop1);
&amp;nbsp;&amp;nbsp;&amp;nbsp; $.writeln(moduleB.prop2);
}());


&lt;/pre&gt;&lt;!--[CodeBlockEnd:a43a52d3-9c3b-4eac-b46b-6d06cfa94301]--&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I don't know how to attach files here, please just save the code below as modulea.jsx and moduleb.jsx and change the path above where these files are required/loaded.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Save this as modulea.jsx&lt;/p&gt;&lt;!--[CodeBlockStart:52922425-d8d8-4784-9336-fb5bb619a470][excluded]--&gt;&lt;pre class="javascript" name="code"&gt;
define(function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp; return {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prop1: 'module A prop 1',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prop2: 'module A prop 2'
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
});


&lt;/pre&gt;&lt;!--[CodeBlockEnd:52922425-d8d8-4784-9336-fb5bb619a470]--&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Save this as moduleb.jsx&lt;/p&gt;&lt;!--[CodeBlockStart:5ae5de49-a1fb-4c6e-a7d6-fec76df84d94][excluded]--&gt;&lt;pre class="javascript" name="code"&gt;
define(function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp; return {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prop1: 'module B prop 1',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prop2: 'module B prop 2'
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
});


&lt;/pre&gt;&lt;!--[CodeBlockEnd:5ae5de49-a1fb-4c6e-a7d6-fec76df84d94]--&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:05d1d680-5337-4e05-8602-6ad225685e3b] --&gt;&lt;img src='/beacon?t=1415948748752' /&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">amd</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">estk</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">module loading</category>
      <pubDate>Thu, 13 Nov 2014 02:41:47 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1633874</guid>
      <dc:date>2014-11-13T02:41:47Z</dc:date>
      <clearspace:dateToText>1 day 4 hours ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Error while placing word to indesign</title>
      <link>https://forums.adobe.com/thread/1579026</link>
      <description>&lt;!-- [DocumentBodyStart:b99d3647-aba1-4d33-8332-c66cd26e35a4] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi All,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have this word document which contains hyperlinks and index entries. When I place it in InDesign CS6, the hyperlinks are off. Screenshot below shows hyperlink boxes being off as it appears on InDesign CS6. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here's the word document I used for this test. &lt;a class="jive-link-external-small" href="https://drive.google.com/file/d/0B0MSG5SMslJlbExJSk1uRFduRkE/edit?usp=sharing" rel="nofollow"&gt;ddd.docx - Google Drive&lt;/a&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Mark&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;a href="https://forums.adobe.com/servlet/JiveServlet/showImage/2-6743458-673384/off.jpg"&gt;&lt;img alt="off.jpg" class="jive-image image-1" height="142" src="https://forums.adobe.com/servlet/JiveServlet/downloadImage/2-6743458-673384/899-142/off.jpg" style="height: 155px; width: 980.612244897959px;" width="899"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:b99d3647-aba1-4d33-8332-c66cd26e35a4] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">indesign</category>
      <pubDate>Fri, 19 Sep 2014 06:36:10 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1579026</guid>
      <dc:date>2014-09-19T06:36:10Z</dc:date>
      <clearspace:dateToText>1 month 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>22</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Call external apps from script</title>
      <link>https://forums.adobe.com/thread/1559398</link>
      <description>&lt;!-- [DocumentBodyStart:4e06b8a7-4a4f-4ff4-9aba-f7e5c9fe6097] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;A want to be able to run an external application via script, just like how we do it in node.js via 'child_process' module. The reason for this is that I want my epub converted to mobi automatically after the export. The app that I will be calling is kindlegen.exe. Is this possible in extend script? I have tried the tutorials on ExternalObject but have no luck making it work. &lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:4e06b8a7-4a4f-4ff4-9aba-f7e5c9fe6097] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">indesign</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">extendscript</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">estk</category>
      <pubDate>Thu, 28 Aug 2014 05:21:06 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1559398</guid>
      <dc:date>2014-08-28T05:21:06Z</dc:date>
      <clearspace:dateToText>2 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Create a build script for Extend Script</title>
      <link>https://forums.adobe.com/thread/1557694</link>
      <description>&lt;!-- [DocumentBodyStart:a86b94da-ac2d-4b3a-996f-9a2a0748513f] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;&lt;span style="color: #333333; font-family: adobe-clean, 'Helvetica Neue', Arial, sans-serif;"&gt;I have several scripts I want exported as binary via "File &amp;gt; Export as Binary" in ExtendScript Toolkit. I want to be able to call ESTK via shell script and tell it to compile that certain file.&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:a86b94da-ac2d-4b3a-996f-9a2a0748513f] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">extend script</category>
      <pubDate>Tue, 26 Aug 2014 07:09:10 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1557694</guid>
      <dc:date>2014-08-26T07:09:10Z</dc:date>
      <clearspace:dateToText>2 months 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>14</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Create a build script for Extend Script</title>
      <link>https://forums.adobe.com/thread/1557693</link>
      <description>&lt;!-- [DocumentBodyStart:324a6f28-acaf-4ccb-bd17-f49922ee0339] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I have several scripts I want exported as binary via "File &amp;gt; Export as Binary" in ExtendScript Toolkit. I want to be able to call ESTK via shell script and tell it to compile that certain file.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:324a6f28-acaf-4ccb-bd17-f49922ee0339] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">indesign'</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">extend script</category>
      <pubDate>Tue, 26 Aug 2014 06:40:39 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1557693</guid>
      <dc:date>2014-08-26T06:40:39Z</dc:date>
      <clearspace:dateToText>2 months 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>InDesign CS6 epub generated cover</title>
      <link>https://forums.adobe.com/thread/1396492</link>
      <description>&lt;!-- [DocumentBodyStart:30ce7eac-96e2-4bf9-becb-0ce7106a759c] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I am using InDesign CS6 for exporting to epub. InDesign always generates this "301.jpg" file which is set as the first or second page in the spine.&lt;/p&gt;&lt;p&gt;I am having difficulty trying to figure out how to turn off this behavior. I already tried selecting "None", "Rasterize first page", and "Choose Image" from the cover setup dialog. Is there a way to turn this behavior off?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:30ce7eac-96e2-4bf9-becb-0ce7106a759c] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">epub_cover</category>
      <pubDate>Mon, 03 Feb 2014 06:26:21 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1396492</guid>
      <dc:date>2014-02-03T06:26:21Z</dc:date>
      <clearspace:dateToText>9 months 1 week ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

