🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16333

File path returned is not a string

#16333
From: nalf
Date: Thu, 25 Sep 2003 14:08
11 lines
1362 bytes
The script below seems to return a file reference, instead of a string path - does anyone have any ideas? (Ultimately I just need the name, but I believe this should return a string path ("drivename:folder:filename") and I just need to delimit to get the name.)

The images are not linked, but I do belive I should be able to get the name anyhow..
Files are EPS with jpeg compression.

on run
	tell application "InDesign 2.0.2"
		set kSelection to my kGetParentItem((item 1 of selection), {EPS, PDF})
		set kImageFilePath to (file path of item link of page item 1 of kSelection) as string
		return kImageFilePath --returns:
		(* 0 �8��� 'H�
Technical Details
Message-ID: <2ccd88d3.-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!newsfeed.news2me.com!newsfeed.freenet.de!151.189.0.75.MISMATCH!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f939a,a6185e9a7652dbeb,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-09-25 07:38:28 PST
From: nalf@qg.com <nalf@qg.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!151.189.0.75.MISMATCH!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: File path returned is not a string
Message-ID: <2ccd88d3.-1@webx.la2eafNXanI>
Date: Thu, 25 Sep 2003 07:08:27 -0700
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit