Copy all Photoshop Pixels, Paste in FileMaker Cell
Copy all Photoshop Pixels, Paste in FileMaker Cell
- Subject: Copy all Photoshop Pixels, Paste in FileMaker Cell
- From: "Chris Nitz" <email@hidden>
- Date: Wed, 23 May 2001 18:06:57 -0700
So here's my problem, with all the fat trimmed out:
--Photoshop (w/Photoscripter) document is already open:
--A Low Res, small size, "thumbnail"
--FileMaker Pro database is already open:
--1 found record, has a cell called "Picture"
tell application "Adobe. Photoshop. 6.0"
activate
set selection to all pixels
copy all pixels
end tell
--tell application "Finder"
-- activate
-- open clipboard -- looks great!
-- display dialog "Clipboard Contents OK?"
-- close clipboard
--end tell
tell application "FileMaker Pro"
activate
paste of cell "Picture" of current record
end tell
-- end script
This works great if the I do 1 copy & paste by hand in to the
database...FIRST.
If I only open the Database (and the Photoshop file) and run the above, I
get: "FileMaker Pro got an error: The event failed."
It doesn't seem to matter if there is pre-existing data in the cell (or
other records) or not.
Everything ALWAYS looks OK on the clipboard [in the Finder], before AND
after the "first manual paste".
Any idea what is going on?
Why can I do this "by hand' -- but the script fails if I don't do it once,
first?
Chris Nitz
Senior Prepress Systems Analyst
Wizards of the Coast Production Dept.
E-mail: email@hidden Desk: 425 204-8044 Cellular: 206 604-0357