• 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
Problems openning files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems openning files


  • Subject: Problems openning files
  • From: "John Jones" <email@hidden>
  • Date: Wed, 31 Jan 2001 09:58:45 -0500

Hello all,

I'm having a problem opening image files in Photoshop with AppleScript. The files were created on a PC and the Mac is identifying most of them as PictureViewer documents and some as just "PC document" (all have .tif extension). Here's the syntax I'm using:

tell application "Adobe. Photoshop. 6.0"
activate
open [reference]
do script [whatever]
end tell

The problem is that even though I'm telling Photoshop to open the file, if it's identified as a PictureViewer document it gets opened with PictureViewer, if it's PC document, the Finder breaks in and says the creator cannot be found. Why is the Finder getting involved here? I thought it might be a problem stemming from PC Exchange so I removed all references mapping the TIFF extension, but that didn't fix it. (BTW: I'm working with OS 9.0.4 and AppleScript 1.4.3)

I also have some general confusion about Type and Creator codes. I had always thought they were stored in the file's resource fork, but when I look at a file that I can retrieve the proper codes from with ResEdit, the resource can be completely empty.

Could someone clue me in.

Thanks,

John J.


  • Prev by Date: Cookies and cgi
  • Next by Date: Type Text(Sigma) question - Scripting non-Scriptable Apps
  • Previous by thread: Cookies and cgi
  • Next by thread: RE: Problems openning files
  • Index(es):
    • Date
    • Thread