Re: Automated input Quark X Press with Applescript
Re: Automated input Quark X Press with Applescript
- Subject: Re: Automated input Quark X Press with Applescript
- From: Hans Haesler <email@hidden>
- Date: Tue, 14 Dec 2004 17:05:23 +0100
On Mon, 13 Dec 2004, Christopher Pryce wrote:
>I've got this simple script which should put each image on a separate
>page with the image path as the caption. The pages get created -- yes i
>know there is an extra blank page at the end -- but any combination of
>ways to access the image have failed.
>set sourcefolder to choose folder with prompt "select folder of images"
>as string
>set picList to list folder sourcefolder without invisibles
>
>tell application "QuarkXPress"
> make new document at beginning
> tell document 1
> repeat with eachFile in picList
> set myFile to (sourcefolder & eachFile)
Christopher,
the last line above results in ...
---
{alias "Path:to:source:folder:", "fileName.jpg"}
---
Two solutions:
1) Add parentheses in the first line:
---
set sourcefolder to ¬
(choose folder with prompt "select folder of images") as string
---
2) Add 'as string' when concatenating the path and the name of the file
---
set myFile to (sourcefolder & eachFile) as string
---
Hans Haesler <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden