• 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: How do we Convert PICT to JPEG
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do we Convert PICT to JPEG


  • Subject: Re: How do we Convert PICT to JPEG
  • From: Christopher Stone <email@hidden>
  • Date: Sat, 05 Sep 2015 18:07:12 -0500

On Sep 05, 2015, at 08:06, Malcolm Fitzgerald <email@hidden> wrote:
After running the script I noticed that a large number of the .pct files didn't have a corresponding .jpg file beside it. I tried to open and save one of the skipped files to see if errors were generated but it converted successfully. So, I ran the process again, on the .pct files that were not converted. Again, the majority of the files were converted but some were skipped. It took six or seven runs to get all the files converted. On the last run there were only two files to convert and one was skipped!
______________________________________________________________________

Hey Malcolm,

If you still have a file that won't convert try the latest beta of GraphicConverter.

http://www.lemkesoft.org/beta.html

When this thread started I had trouble using GraphicConverter 9 to convert a bunch of .pct files Mark Hunte provided a link for, so I reported the issue to GC's developer Thorsten Lemke.  He fixed the problem promptly after getting home from vacation.

A one-off conversion job can be easily accomplished from a GC browser window's toolbar.

Scripting it is just a trifle convoluted, because you have to create a GC-Batch-Definition-File to reference in the script.

-------------------------------------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2015/09/04 10:57
# dMod: 2015/09/05 17:30
# Appl: Finder, GraphicConverter 9
# Task: Convert Files Using a GC-Batch-Definition-File
# Tags: @Applescript, @Script, @Finder, @GraphicConverter_9, @File, @Conversion, @Batch
-------------------------------------------------------------------------------------------

set imageSourceFolder to alias ((path to home folder as text) & "test_directory:Malcolm.Pict.Test:PICT_Example_Images:")
set imageConversionDestinationFolder to alias ((path to home folder as text) & "test_directory:Malcolm.Pict.Test:PICT_To_JPG_Converted:")
set batchDefinitionFile to alias ((path to application support from user domain as text) & "GraphicConverter:Actions:Convert to PNG")

tell application "Finder" to set imageFileList to files of imageSourceFolder as alias list

if imageFileList ≠ {} then

  

  set theFile to item 1 of imageFileList

  

  # Single file conversion.
  tell application "GraphicConverter 9"
    convert file theFile using batch batchDefinitionFile to folder imageConversionDestinationFolder
  end tell

  

  # Convert List of files.
  tell application "GraphicConverter 9"
    quick convert files imageFileList in folder imageConversionDestinationFolder using batch batchDefinitionFile
  end tell

  

end if

-------------------------------------------------------------------------------------------

** in folder in the quick-convert script above is misleading, because it means to folder.

Thorsten says this job can be done without the batch-def-file via the command-line, and I'm waiting to see some examples.

As far as I know the feature is currently undocumented.

--
Best Regards,
Chris

 _______________________________________________
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

References: 
 >Re: How do we Convert PICT to JPEG (From: Malcolm Fitzgerald <email@hidden>)

  • Prev by Date: Re: How do we Convert PICT to JPEG
  • Next by Date: AS in TextExpander with user interaction
  • Previous by thread: Re: How do we Convert PICT to JPEG
  • Next by thread: AS in TextExpander with user interaction
  • Index(es):
    • Date
    • Thread