• 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
unable to do batch operations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

unable to do batch operations


  • Subject: unable to do batch operations
  • From: "Jessica McMackin" <email@hidden>
  • Date: Fri, 22 Mar 2002 20:48:23 +0000

Im writing a script which needs to do some batch operations over a folder (inside a "tell
Finder"), then use Photoshop to convert some images (inside a "tell Photoshop") and then do some
more batch operations (again inside a "tell Finder"). The first set of batch operations works
fine, but after using photoshop I am unable to do any batch operations.
thanks, Jessica
Here is the script:



-- temp_folder, packet_name defined up here
set file_count to 0

tell application "Finder"
activate

set new_folder to make new folder in temp_folder
set name of new_folder to packet_name
set packet_folder to folder packet_name of folder temp_folder as string

-- THIS BATCH OPERATION "copy every" WORKS FINE. AS DOES THE REPEAT LOOP

copy every item of folder source_folder to folder packet_folder
set file_list to every item in folder packet_folder
-- renames everything in the new packetfolder that was just made
repeat with i from 1 to number of items in file_list
set file_count to file_count + 1
set name of item i of file_list to packet_name & "_" & file_count
end repeat

set archive_list to every item in folder packet_folder
set file_count to 0

end tell

tell application "Adobe. Photoshop. 6.0.1"
activate

repeat with i from 1 to number of items in archive_list
open item i of archive_list
end repeat
repeat with i from 1 to number of items in archive_list
do script "Save as Tiff"
end repeat
end tell

tell application "Finder"
activate

-- THIS DOES NOT WORK, why? why? why?

move every file in container proc_folder to folder packet_folder

-- THIS DOES WORK (thumb_folder has been created somewhere else)
move folder thumb_folder to folder packet_folder
end tell





_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
_______________________________________________
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.
  • Follow-Ups:
    • Re: unable to do batch operations
      • From: Andy Wylie <email@hidden>
  • Prev by Date: Re: paste special problem
  • Next by Date: Re: Rounding
  • Previous by thread: Re: Was: Is the picture_folder of the screensaver in OS X scriptable?
  • Next by thread: Re: unable to do batch operations
  • Index(es):
    • Date
    • Thread