Quark place pics script issue
Quark place pics script issue
- Subject: Quark place pics script issue
- From: "Buttery, Ian" <email@hidden>
- Date: Mon, 24 May 2004 15:48:59 +0100
- Priority: Urgent
- Thread-topic: Quark place pics script issue
Hi,
I'm trying to script the auto placement of images within a Quark document but get a message . . .
execution error: Can't make "hard disk:image:" into a item.
This is the script I'm using . . .
set theMessage to ""
set theFolder to (choose folder with prompt "Select Image Folder") as string
set theList to list folder theFolder without invisibles
tell application "QuarkXPress(tm) 4.11"
tell document 1
repeat with eachFile in theList
set theName to text 1 thru 2 of eachFile & "_Image"
try --will error if image is not compatible
tell picture box theName
set image 1 to (theFolder & eachFile) as alias
set bounds of image 1 to proportional fit
end tell --picture box
on error
set theMessage to theMessage & name of eachFile & return
end try
end repeat
end tell --document
end tell --application
if theMessage is not "" then
display dialog theMessage
end if
Any ideas?
Ian Buttery
Publishing Database and Tech. Support Manager
Thomas Cook Tour Operations Ltd.
*: 01733 843514
*: email@hidden
************************************************************************
Thomas Cook - The ultimate expert in leisure travel, visit us at
www.thomascook.com or tune in to Thomas Cook TV on Sky
Digital Channel 648 or ntl:home channel 857 or visit us at...
www.jmc.com www.tcsignature.com www.style-holidays.co.uk
www.neilson.co.uk www.club18-30.co.uk www.blueskyholidays.com
www.culturatrips.com
This email is confidential, may be legally privileged, and is for
the intended recipient only. Access, disclosure, copying,
distribution or reliance on any of it by anyone else is prohibited
and may be a criminal offence. Please delete if obtained in error.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Thomas Cook UK Ltd.
**************************************************************************
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.