From: Jason Davies <[EMAIL PROTECTED]>
Subject: Re: [G] Changing file types on batch - again!


 From: Jason Davies <[EMAIL PROTECTED]>


 Never really resolved this issue properly.=20
 Booted in Tiger, without using third party=20
 software, I want

 A. My jpgs from my camera (or any collection of=20
 pic files of my choosing) to open in my OS 9=20
 Photoshop app.

 B. The icons to have the PS look

 They get by default the preview icon.

 I can get A by Get Info panel, open with, other=20
 (photoshop never appears in the list, I have to=20
 file sys hunt it down, easy enough every time=20
 but surely this is unsatisfactory?) and choose=20
 PS. Fine, but no B. And aesthetically worse:=20
 plain - white doc - icon. I can open the file=20
 and save as and I get B. Without going crazy,=20
 how to get this result auto for a number of=20
 files?

 Let us now try something else: after Open with=20
 in the Get Info, immediately press the Change=20
 All... button. Now things get truly crazy. A=20
 dialog box comes up to ask you if you really=20
 want to open all files of this type, and it is=20
 explicit about it being a PS file, in PS! OK.=20
 sloppy coding and wording by the programmers=20
 maybe, lets us press on and say yes, and hit the=20
 Continue button. Now, in the Get Info panel, the=20
 Preview returns magically as the Open with! Of=20
 course all PS files will open with PS! The=20
 problem is how to get files en mass to open with=20
 PS when they are by default set to Preview.

 I think there is a bug in Tiger or something deeply wrong.

 This problem still shows up after a reinstall of=20
 Tiger, after all updates (at least up to a month=20
 or two ago?)

 David Elmo






 Here is an applescript that will work.

 -- paste the following in Script Editor.
 -- save as application
 -- drag-and-drop files and/or folders onto the icon to set them
 -- to open with photoshop



 on open (thelist)
     set thelist to thelist as list
     repeat with x in thelist
         dostuff(x)
     end repeat
 end open

 on dostuff(theThing)
     tell application "Finder"
         if (character -1 of (theThing as text)) =82 ":" then
             if file type of theThing =3D "JPEG" then
                 set creator type of theThing to "8BIM"
             end if
         else
             repeat with x in every item of theThing
                 dostuff(x)
             end repeat
         end if
     end tell
 end dostuff

 --end of script
 -- Jason Davies
 Master Gizmologist
 Cream City Traction Club

 http://www.geocities.com/jason_e_davies/cct.html



When trying to save as an app, it did not like the ". after the 82,
it was expecting a Then ...

You will know I am in X. That I am using the X applescript. If I was
booted in 9 I have a very easy way of changing file types via the
creator type to 8BIM...

I thought all this creator code stuff was a 9 thing, I have not a
clue how X or Classic interacts with this...

As can be seen from my post, the file can be changed to the PS one
for any individual file via Get Info, not the icon though! meaning
the X has somehow associated PS with the file (but thru a process
obscure to me, in 9 it was via the creator and file type).

Anyway, bottom line, your code is not working for me and it is for
jpgs only and only if the ext is JPEG and so on... I would rather
not be diving into coding before I know there are not good working
solutions built into X. But, naturally, thanks... and I may have to
return to this or use third party software. It seems so fundamental
that I find it hard to believe Apple has not provided for it?

David Elmo



That "=82" should be option-equal (not equal to). (You would think
that a Mac mailing list would be able to handle Mac-ASCII :)


I don't know how it works in OSX either, but it does work.
-- Jason Davies
Master Gizmologist
Cream City Traction Club

http://www.geocities.com/jason_e_davies/cct.html

OK Jason, one more thing then, what is the =3D?

(BTW, what is your email program? Mine is Mail and the "option equals" from this client looks like: ≠

What do you see? Maybe best to put it up in a <pre> on a webpage!)

I will have a look at this and see if it can be generalised to many types of files, and suffixes. But I am mightily puzzled at how hard it is to batch change using built in facilities. In Tiger, there seems to be trouble telling the machine to open all files that are set to Preview to - instead - Photoshop 5 or 6 (9 apps).

David Elmo





--
G-List is sponsored by <http://lowendmac.com/> and...

Small Dog Electronics    http://www.smalldog.com | Refurbished Drives |
-- We have Apple Refurbished Monitors in stock!  |  & CDRWs on Sale!  |

     Support Low End Mac <http://lowendmac.com/lists/support.html>

G-List list info:       <http://lowendmac.com/lists/g-list.shtml>
 --> AOL users, remove "mailto:";
Send list messages to:  <mailto:g-list@mail.maclaunch.com>
To unsubscribe, email:  <mailto:[EMAIL PROTECTED]>
For digest mode, email: <mailto:[EMAIL PROTECTED]>
Subscription questions: <mailto:[EMAIL PROTECTED]>
Archive: <http://www.mail-archive.com/g-list%40mail.maclaunch.com/>

iPod Accessories for Less
at 1-800-iPOD.COM
Fast Delivery, Low Price, Good Deal
www.1800ipod.com

Reply via email to