• 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: Brian Christmas <email@hidden>
  • Date: Wed, 01 Aug 2012 16:10:56 +1000


On 01/08/2012, at 11:27 AM, Shane Stanley <email@hidden> wrote:

On 01/08/2012, at 10:52 AM, Brian Christmas <email@hidden> wrote:

That's a pain, but sounds typical Adobe.

At least there's a relatively painless workaround.

But if you want cold, try Ballarat!

I'm from Ballarat stock, so I know all about it.

Wagga? </shiver>

G'day once more.

This is difficult. I can't get the terminology correct for love nor money when it comes to the Save line of this script. Can anyone help please

Regards

Santa

on adding folder items to this_folder after receiving PhotoshopFiles
try
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"


if not (exists folder ptdpif) then
make new folder at folder ptd with properties {name:"Processed Images Folder"}
end if
if not (exists folder ptdpsf) then
make new folder at folder ptd with properties {name:"Processed Stored 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
set PhotoshopFiles to files of folder ptdpp as alias list


end tell
say (count of PhotoshopFiles)
delay 4
tell application "Adobe Photoshop CS6"
activate
repeat with this_File in PhotoshopFiles
tell application "Finder"
set file_Name to name of this_File
set file_Extension to name extension of this_File
set file_Name2 to characters 1 through -((count of file_Extension) + 1) of file_Name
if file_Extension = "jpg" then set file_Extension to "jpeg"
set file_to_save to (ptdpif & ":" & file_Name as text) --POSIX path of 
--display dialog file_to_save
end tell
open this_File
set display dialogs to never
try
do action "Wood Frame - 50 pixel" from "Default Actions"
save document {name:file_Name} in file file_to_save as file_Extension with copying -- gives 'File/Folder expected'
on error errmsg
display dialog errmsg
end try
try
close document 1 saving no
end try
end repeat
end tell


tell application "Finder"
move PhotoshopFiles to folder ptdpsf
end tell
on error errmsg
display dialog errmsg
end try


end adding folder items to



 _______________________________________________
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: Shane Stanley <email@hidden>
References: 
 >Asking for Photoshop Batch help please. (From: Brian Christmas <email@hidden>)
 >Re: Asking for Photoshop Batch help please. (From: "koenig.yvan" <email@hidden>)
 >Re: Asking for Photoshop Batch help please. (From: Brian Christmas <email@hidden>)
 >Re: Asking for Photoshop Batch help please. (From: Shane Stanley <email@hidden>)
 >Re: Asking for Photoshop Batch help please. (From: Brian Christmas <email@hidden>)
 >Re: Asking for Photoshop Batch help please. (From: Shane Stanley <email@hidden>)
 >Re: Asking for Photoshop Batch help please. (From: Brian Christmas <email@hidden>)
 >Re: Asking for Photoshop Batch help please. (From: Shane Stanley <email@hidden>)

  • Prev by Date: AppleScript used as an outbox rules stop working after upgrade to ML
  • 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