🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #730

Re: [AS] Script runs slower and slower

#730
From: Olav_Kvern
Date: Tue, 17 Mar 2009 22:13
20 lines
1177 bytes
Hi Thomas,

Here's a general purpose "do script" script--it'll just run a script file you select using the "fast entire script" undo mode:



--RunScriptFromFile.applescript 
--An InDesign CS4 AppleScript 
-- 
--Runs a script file using the do script method. 
set myScriptFile to choose file with prompt "Select an AppleScript" 
tell application "Adobe InDesign CS4" 
do script myScriptFile language applescript language undo mode fast entire script undo name (myScriptFile as string) 
end tell

Should be quite a bit faster. Let me know how it works for you!

Thanks,

Ole
Technical Details
Message-ID: <59b839fa.11@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
References: <59b839fa.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,964f40adb0036d50
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Olav_Kvern@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: [AS] Script runs slower and slower
Message-ID: <59b839fa.11@webcrossing.la2eafNXanI>
Date: Tue, 17 Mar 2009 15:13:05 -0700
References: <59b839fa.-1@webcrossing.la2eafNXanI>
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit