• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Automated input Quark X Press with Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Automated input Quark X Press with Applescript (From: Christopher Pryce <email@hidden>)

  • Prev by Date: Re: [ANN] XNetwork 1.0
  • Next by Date: Re: Not happy...
  • Previous by thread: Re: Automated input Quark X Press with Applescript
  • Next by thread: Concierge
  • Index(es):
    • Date
    • Thread