• 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: saving a file in GraphicConverter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: saving a file in GraphicConverter


  • Subject: Re: saving a file in GraphicConverter
  • From: Joel Henriques <email@hidden>
  • Date: Sun, 5 Jan 2003 20:50:07 -0800

I'm running this in MacOS X (10.2.3). I have the "JPEGs" folder open, but I still have to click on the open window to get the OS to refresh the contents view. The new JPG files should be there. :-/

weird. Yeah, I'm running 10.2.3 too, and I even did a search to see if the file was there and just not showing up, but it isn't anywhere. Could it be a pref somewhere in GraphicConverter or something I wonder?








On Sunday, January 5, 2003, at 11:21 PM, Joel Henriques wrote:

I really like the way that's scripted. Solved some problems with
existing folder causing an error, but I'm still not getting it to
create a jpeg file. Maybe I've got something set wrong with my setup?
I'm still very, very new at this. It seems like everything makes sense
in the script though. Hum.....



property type_list : {"JPEG", "GIFf", "PICT", "TIFF"}
property extension_list : {"jpg", "jpeg", "gif", "pct", "pict", "tif",
"tiff"}

on open these_items
tell application "Finder"
activate

set theLoc to container of item 1 of these_items

set folderexists to (folder "JPEGs" of theLoc) exists
if folderexists is false then make new folder at theLoc with
properties {name:"JPEGs"}
set theDest to folder "JPEGs" of theLoc as alias
set itemcount to the count of these_items

repeat with i from 1 to itemcount
set this_item to item i of these_items
set validfiletype to (the file type of this_item is in the
type_list)
set validnameextension to the name extension of this_item is in the
extension_list

if validfiletype and validnameextension then -- else process next
file

set theName to the name of item i of these_items as string

set AppleScript's text item delimiters to "."
set theNewName to text item 1 of theName & ".jpg"

set validfiletype to (the file type of this_item is in the
type_list)
set validnameextension to the name extension of this_item is in
the extension_list

if validfiletype and validnameextension then
tell application "GraphicConverter"
activate
open this_item
set this_item to ((theDest as string) & theNewName)
save window 1 in this_item as JPEG with makeCopy
close window 1 saving no
end tell
end if
end if
end repeat
end tell
end open
_______________________________________________
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.
_______________________________________________
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.
_______________________________________________
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: saving a file in GraphicConverter
      • From: cassj <email@hidden>
References: 
 >Re: saving a file in GraphicConverter (From: cassj <email@hidden>)

  • Prev by Date: Re: applescript-users digest, Vol 3 #1199 - 7 msgs
  • Next by Date: Re: saving a file in GraphicConverter
  • Previous by thread: Re: saving a file in GraphicConverter
  • Next by thread: Re: saving a file in GraphicConverter
  • Index(es):
    • Date
    • Thread