Go Back   The macosxhints Forums > OS X Help Requests > AppleScript



Reply
 
Thread Tools Rate Thread Display Modes
Old 01-24-2013, 09:13 AM   #1
jimmy
Prospect
 
Join Date: Jan 2013
Posts: 1
Post PhotoShop CS4 hotfolder creation failed in OS10.8.1

Hi there. I am a first time poster and Im looking for some real help.

I am new to AppleScript, and I am setting a hot folder to PS CS4.

Once a file is dragged to this folder, open Photoshop automatically to do one action. And then save this file. That's all.

I have read through several solutions through some forums, and tried one by myself.
----------------------------------------------------------------------
on adding folder items to thisFolder after receiving theseFiles
tell application "Adobe Photoshop CS4"
launch
repeat with thisFile in theseFiles
open thisFile showing dialogs never
tell current document
do action "Add ICC" from "Set 1"
end tell
end repeat
end tell
end adding folder items to
----------------------------------------------------------------------

But if I compile,
1. there is an error :Expected end of line but found identifier. The word "showing" in "open thisFile showing dialogs never" is highlighted.

I checked this error, the applescript says that there is a space...

2. I just use "open thisFile" to try, another error: Expected end of line but found class name. And then "document" of "tell current document" is highlighted.

3. I also delte "tell current document" to test again, then "action" is highlighted and the error: "Expected end of line but found identifier."

This script is followed by script manual of PS CS4. I don't know where the problems are....

I am using OSX 10.8.1

Can anyone give me some advice? Thank you!
jimmy is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 07:27 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.