Denna delen av 99 uppdateras inte längre utan har arkiverats inför framtiden som ett museum.
Här kan du läsa mer om varför.
Mac-nyheter hittar du på Macradion.com och forumet hittar du via Applebubblan.

Ny AS-kod för länka om bilder i CS5? Funkar inte

Tråden skapades och har fått 2 svar. Det senaste inlägget skrevs .
1
  • Medlem
  • 2010-12-14 23:18

Jag försöker länka om en bild till en annan bild i InDesign CS5 med ett applescript.
I Dictionary står följande:

Citat:

relink link ¬
to anything

Men det går åt skogen när jag skriver följande:

set myNewFilePath to "HD:Users:Baron:Desktop:images.jpg"
tell application "Adobe InDesign CS5"
	tell active document
		set myAllGraphics to all graphics
		repeat with I from 1 to count myAllGraphics
			set myGraphicItem to item I of myAllGraphics
			set myItemLink to item link of myGraphicItem
			relink file path of myItemLink to myNewFilePath
		end repeat
	end tell
end tell

Det går ännu sämre när jag skriver " relink myItemLink to myNewFilePath" som kommando.
Hur gö rman i CS5? CS4 går det bra i.

set myNewFilePath to "Macintosh HD:Users:richardr:Desktop:Skärmavbild 2010-12-15 kl. 08.32.07.png"
tell application "Adobe InDesign CS5"
tell active document
relink item link of item 1 of all graphics to alias myNewFilePath
end tell
end tell

  • Medlem
  • 2010-12-18 21:39

Tack!

1
Bevaka tråden