Re: Photoshop to resize Illustrator eps's script
Re: Photoshop to resize Illustrator eps's script
- Subject: Re: Photoshop to resize Illustrator eps's script
- From: Paul Kampu <email@hidden>
- Date: Wed, 11 Feb 2004 11:24:32 -0500
On 2/10/04 4:37 PM, "Shane Stanley" <email@hidden> wrote:
>
On Feb 11, 2004, at 1:42 AM, Paul Kampu wrote:
>
>
> We have a folder selected in the Finder. We want to open all the
>
> Illustrator
>
> eps9s within the folder in Photoshop, resize them and save them as
>
> Photoshop
>
> documents. Then we move them all to another folder that the script
>
> creates.
>
>
>
> Problem is, for some reason, the script is telling Illustrator to open
>
> the
>
> files?! (and I don't have any idea as to why!)
>
>
It's because you're getting the list of files via the Finder, and so
>
you are ending up with Finder references to the files. When you pass
>
them to Photoshop, it doesn't understand them and they promptly get
>
passed back to the Finder -- it's as if you just double-clicked on
>
them.
>
>
Change this:
>
>
set thisItem to item i of the itemList
>
>
to:
>
>
set thisItem to (item i of the itemList) as alias
>
Works like a charm. Thank you, Shane! (and Eric too!)
Now the questions is:
Where (in tarnation) does one
learn/interpret/osmosize/contribulate/infernalize/etc. this?
Why are references to files DIFFERENT between applications?
Why is "Keep It Simple Stupid" missing from applescript?
Pardon the rant...this issue happens TOO often.
--
Paul Kampu
_______________________________________________
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.