🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18607

from applescript to visual basic

#18607
From: Gerald Singelmann
Date: Thu, 06 Mar 2003 12:57
33 lines
1603 bytes
hi all,

have not yet made any attempts at visual basic but i need a simple applescript on the pc. does anyone here perchance feel like "translating" this for me?



 
tell application "InDesign 2.0.1"  
	set mydoc to active document  
	tell mydoc  
		set npages to count pages  
		repeat with i from 1 to npages  
			set thisPage to page i  
			tell thisPage  
				set everyItem to every master page item  
				set nItems to count everyItem  
				repeat with j from 1 to nItems  
					set someItem to item j of everyItem as reference  
					unlink someItem from master spread  
					send to back someItem 
				end repeat  
			end tell  
		end repeat  
	end tell  
end tell  




it simply performs the aquivalent of <cmd><shift>klick on every master-pahe object so they are immediately editable on the page.

thank you so much
gerald
Technical Details
Message-ID: <1de82b16.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,1742becda4c537f7,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-03-06 05:24:42 PST
From: "Gerald Singelmann" <gsingelmann@impressed.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: from applescript to visual basic
Message-ID: <1de82b16.-1@WebX.la2eafNXanI>
Date: Thu, 6 Mar 2003 04:57:22 -0800
Lines: 32
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit