Article View: adobe.scripting.indesign
Article #17172Folder actions and InDesign scripts
From: John Darnell
Date: Fri, 27 Jun 2003 16:17
Date: Fri, 27 Jun 2003 16:17
28 lines
1932 bytes
1932 bytes
FοΏ½ilte Fellow Scipters:
Please be advised that I am using Script Debugger to write these separate scripts referred to below.
I am attempting to make an Applescript with InDesign Applescript in it. The folder action works so long as I do not call the InDesign code, but once I add InDesign code, the whole Folder Action system seems to break down and I have to reboot before I can get it back. This is what my code looks like in the folder action script:
on adding folder items to this_folder after receiving added_items
if added_items = {}
return
end if
repeat with MyFile in added_items
ConvertMain() --This is the script that does the InDesign work
end repeat
end adding folder items to
If I comment out ConvertMain, and liberally sprinkle "display dialog" messages in the folder action script, it works as expected. The minute, however, I put the InDesign scripting code back in, it stops working.
I went so far as to put the following two lines as the first two lines in the ConvertMain() code:
display dialog "In ConvertMain"
return
I never saw the dialog.
Does anyone have any wisdom in using folder actions and InDesign.
Technical Details
Message-ID:
<1de9b5e6.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f939a,509f53da23030a35,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-06-27 09:37:55 PST From: "John Darnell" <John.Darnell@Walsworth.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Folder actions and InDesign scripts Message-ID: <1de9b5e6.-1@WebX.la2eafNXanI> Date: Fri, 27 Jun 2003 09:17:38 -0700 Lines: 37 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit