Article View: adobe.scripting.indesign
Article #952Re: IDML is it useful???????????
From: Shane_Stanley
Date: Tue, 24 Feb 2009 10:18
Date: Tue, 24 Feb 2009 10:18
33 lines
2411 bytes
2411 bytes
On 24/2/09 7:17 PM, "Dirk Becker" <member@adobeforums.com> wrote:
> You could use the command line (Terminal.app)
C'mon, this is supposed to be a scripting forum, not the place to do things
the hard way ;-)
Save this as a script app from Script Editor:
on open filelist
repeat with anitem in filelist
set filePath to anitem as text
set theSource to quoted form of POSIX path of filePath
if (filePath ends with ".idml") then -- unzip
set theDest to quoted form of POSIX path of ((text 1 thru -6 of
filePath) & ":")
do shell script ("ditto -x -k " & theSource & " " & theDest)
else if filePath ends with ":" then -- zip up
set theDest to quoted form of POSIX path of ((text 1 thru -2 of
filePath) & "+.idml")
do shell script ("ditto -c -k --norsrc --noextattr " & theSource
& " " & theDest)
end if
end repeat
end open
Drag .idml files on to it and they'll be unzipped; drag folders, and they'll
be converted to .idml (with a + before the extension to distinguish them
from the originals).
--
Shane Stanley <sstanley@myriad-com.com.au>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro>
Technical Details
Message-ID:
<C5CA14C1.4EE0D%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b8067c.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,812b49d99f337a30 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Shane_Stanley@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: IDML is it useful??????????? Message-ID: <C5CA14C1.4EE0D%sstanley@myriad-com.com.au> Date: Tue, 24 Feb 2009 02:18:57 -0800 References: <59b8067c.-1@webcrossing.la2eafNXanI> Lines: 42 Received: from outbound.icp-qv1-irony-out4.iinet.net.au [203.59.1.150] by adobeforums.com; Tue, 24 Feb 2009 02:19:35 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AigBAGNYo0l8qAjL/2dsb2JhbAAI1nKEEQY X-IronPort-AV: E=Sophos;i="4.38,258,1233500400"; d="scan'208";a="317187560" Received: from unknown (HELO [10.1.1.4]) ([124.168.8.203]) by outbound.icp-qv1-irony-out4.iinet.net.au with ESMTP; 24 Feb 2009 19:19:00 +0900 User-Agent: Microsoft-Entourage/12.15.0.081119 Thread-Topic: IDML is it useful??????????? Thread-Index: AcmWaU1WWCA9qH7uIEeQkdl/ikbDQw== MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit