• 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: Asking for Photoshop Batch help please.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Asking for Photoshop Batch help please.


  • Subject: Re: Asking for Photoshop Batch help please.
  • From: "koenig.yvan" <email@hidden>
  • Date: Tue, 31 Jul 2012 19:23:29 +0200


Le 31/07/2012 à 17:13, Brian Christmas <email@hidden> a écrit :


G'day

I've struck an unusual problem scripting Photoshop, both in CS5 and CS6.

The following script does not allow the Batch process, i get an error in both versions saying the Batch Process seems to be unavailable, the parameters aren't recognized.

Any advice on what I'm doing wrong please?

Regards

Santa


on adding folder items to this_folder after receiving PhotoshopFiles
tell application "Finder"
set ptd to path to desktop as text
set ptdpp to ptd & "Photoshop Processing" as text
set ptdpif to ptd & "Processed Images Folder" as text
set ptdpsf to ptd & "Processed Stored Folder" as text
set fileToLog to (ptdpif) & ":Photoshop_Batch_Errors_Log.txt" as text
set PhotoshopFiles to files of folder ptdpp as alias list
say (count of PhotoshopFiles)
if not (exists file fileToLog) then
make new file at ptdpif with properties {name:"Photoshop_Batch_Errors_Log.txt"}
end if
end tell
tell application "Adobe Photoshop CS5"
activate
set display dialogs to never
batch "Wood Frame - 50 pixel" from "Default Actions" from files PhotoshopFiles with options {destination:folder, destination folder:alias ptdpif, error file:alias fileToLog, macintosh compatible:true, file naming:{document name mixed, extension lower}, suppress open:true, override save:true}
end tell
tell application "Finder"
move PhotoshopFiles to ptdpsf
end tell
end adding folder items to


There are several errors in your scripts so it can't do what it's supposed to achieve.
For instance, the Finder can't create a folder in a string as you urge it to do.

I assume that the folder to which the script is attached is the folder which you name ptdpp.
I edited the script accordingly.
I disabled the code specific to Photoshop because I don't own it.

Here is my edited version.

on adding folder items to this_folder after receiving PhotoshopFiles
set ptd to path to desktop as text
--set ptdpp to ptd & "Photoshop Processing" as text
set ptdpp to this_folder as text
set ptdpif to ptd & "Processed Images Folder" as text
set ptdpsf to ptd & "Processed Stored Folder" as text
set fileToLog to (ptdpif) & ":Photoshop_Batch_Errors_Log.txt" as text
tell application "Finder"


set PhotoshopFiles to files of folder ptdpp as alias list
if not (exists folder ptdpsf) then
make new folder at folder ptd with properties {name:"Processed Stored Folder"}
end if
if not (exists folder ptdpif) then
make new folder at folder ptd with properties {name:"Processed Images Folder"}
end if
if not (exists file fileToLog) then
make new file at folder ptdpif with properties {name:"Photoshop_Batch_Errors_Log.txt"}
end if
end tell
say (count of PhotoshopFiles)
(*
tell application "Adobe Photoshop CS5"
activate
set display dialogs to never
batch "Wood Frame - 50 pixel" from "Default Actions" from files PhotoshopFiles with options {destination:folder, destination folder:alias ptdpif, error file:alias fileToLog, macintosh compatible:true, file naming:{document name mixed, extension lower}, suppress open:true, override save:true}
end tell
*)
tell application "Finder"
move PhotoshopFiles to folder ptdpsf
end tell


end adding folder items to

Yvan KOENIG (VALLAURIS, France) mardi 31 juillet 2012 19:22:59



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Asking for Photoshop Batch help please.
      • From: Brian Christmas <email@hidden>
References: 
 >Asking for Photoshop Batch help please. (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Asking for Photoshop Batch help please.
  • Next by Date: Re: Asking for Photoshop Batch help please.
  • Previous by thread: Re: Asking for Photoshop Batch help please.
  • Next by thread: Re: Asking for Photoshop Batch help please.
  • Index(es):
    • Date
    • Thread