Re: Asking for Photoshop Batch help please.
Re: Asking for Photoshop Batch help please.
- Subject: Re: Asking for Photoshop Batch help please.
- From: Simon Topliss <email@hidden>
- Date: Wed, 01 Aug 2012 14:56:30 +0100
On 1 Aug 2012, at 13:48, Brian Christmas < email@hidden> wrote: Simon, this is the rearranged version. Reminds this 64 year old of the days when I used to program Hypercard (you young whippersnapper have heard of Hypercard haven't you? Everything could have an interactive script behind it, sort of subroutines on steroids. Badly miss it.
I never did try HyperCard and it's been a loooong time since I was considered a whippersnapper!
The amended code looks a lot better. I would change the resetFirstFolder() subroutine to:
on resetFirstFolder(this_File) -- ALL saved as default .psd files tell application "Finder" to set file_Name to name of this_File set file_Extension to "psd" --default Save name extension of this_File, will require altering if default is reset eg to jpeg set file_Name2 to characters 1 through -((count of file_Extension) + 2) of file_Name as text set file_to_save to (ptdpif & ":" & file_Name2 & "." & file_Extension as text) set x to 1 repeat tell application "Finder" to if not (exists file file_to_save) then exit repeat set file_to_save to (ptdpif & ":" & file_Name2 & " " & x & "." & file_Extension as text) set x to x + 1 end repeat end resetFirstFolder
This makes sure that the only Finder bits are within a it's tell block.
Also, I prefer to use System Events (or do shell script) than Finder. It's much, much more reliable.
Simon
|
_______________________________________________
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