• 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: convert PICT into PNG
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: convert PICT into PNG


  • Subject: Re: convert PICT into PNG
  • From: KOENIG Yvan <email@hidden>
  • Date: Thu, 30 Dec 2010 20:43:39 +0100


Le 30 déc. 2010 à 19:55, Alex Zavatone a écrit :

I ended up with much more luck using SIPS, than the ImageEvents wrapper for SIPS.  


Thanks.

I tried with :

set leCheminOriginal_UniText to (path to desktop as text) & "testeur:014_020d_X7246.pict"

tell application "System Events" to tell disk item leCheminOriginal_UniText
set vieux_nom to name
--> "014_020d_X7246.pict"
set le_dossier to path of container
--> "Macintosh HD:Users:yvankoenig:Desktop:testeur:"
set l_extension to name extension
--> "pict"
end tell -- System Events
if l_extension is not "" then set vieux_nom to text 1 thru -(2 + (count of l_extension)) of vieux_nom
set target_path to le_dossier & vieux_nom & "#.png"
--> "Macintosh HD:Users:yvankoenig:Desktop:testeur:014_020d_X7246#.png"
set pict_Unix to quoted form of POSIX path of leCheminOriginal_UniText
set png_Unix to quoted form of POSIX path of target_path
--do shell script "sips --setProperty format png " & pict_Unix & " --out " & png_Unix
do shell script "sips -s format png " & pict_Unix & " --out " & png_Unix

but I got the same result : no png file !

Yvan KOENIG (VALLAURIS, France) jeudi 30 décembre 2010 20:37:22



 _______________________________________________
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: convert PICT into PNG
      • From: Alex Zavatone <email@hidden>
References: 
 >convert PICT into PNG (From: KOENIG Yvan <email@hidden>)
 >Re: convert PICT into PNG (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: convert PICT into PNG
  • Next by Date: Re: convert PICT into PNG
  • Previous by thread: Re: convert PICT into PNG
  • Next by thread: Re: convert PICT into PNG
  • Index(es):
    • Date
    • Thread