RE: Problems openning files
RE: Problems openning files
- Subject: RE: Problems openning files
- From: Hellum Timothy <email@hidden>
- Date: Wed, 31 Jan 2001 10:40:31 -0500
You could try attaching this code as a folder action. I use it as a doplet
(as sent here) for changing creator codes to PhotoShop (from whatever):
on open (theList)
tell application "Finder"
repeat with theItem in theList
if class of theItem is file then
set locked of theItem to false
end if
set fileName to name of theItem
set fileType to file type of theItem
set creator type of theItem to "8BIM"
end repeat
end tell
end open
HTH,
Timothy
Photodesk
The Globe and Mail
www.globeandmail.ca
(416) 585-5375
_______________________________
Once again the thought strikes me:
Half is quite a bit of wit.
~ Tom Waits
>
----------
>
From: John Jones
>
Sent: Wednesday, January 31, 2001 9:58 AM
>
To: email@hidden
>
Subject: Problems openning files
>
>
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.
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users