Hello.
I’m trying to help my wifes recovers quark fils.
The thing is that she lost the ‘icons’ on them under osx. So the os don’t now
wath kinde of file it is any longer. It’s shown as a ‘bash execute’.
Well I have updated the ‘.magic’ fil under hear users with thise from my linux computer:
# Quark Express from http://www.garykessler.net/library/file_sigs.html
2 string IIXPR3 Intel Quark Express Document (English)
2 string IIXPRa Intel Quark Express Document (Korean)
2 string MMXPR3 Motorola Quark Express Document (English)
2 string MMXPRa Motorola Quark Express Document (Korean)
# adobe indesign (document, whatever...) from querkan
0 belong 0x0606edf5 Adobe InDesign
>16 string DOCUMENT Document
And now I can separate the files under terminal with the ‘file’ command.
15655 CK red feb 07 -4.0: Motorola Quark Express Document (English)
maestro: TIFF image data, big-endian
Media meglerne: PostScript document text conforming at level 3.0 - type EPS
MEDIAPLANLOGO.tif: TIFF image data, big-endian
Medicas logo: PostScript document text conforming at level 3.0 - type EPS
ME Logo: TIFF image data, big-endian
and I have just it to make a text fil with only the quark files and the path to them. Likes thise:
find ~user -name "*" > user-fil-liste.txt
$ file -f user-fil-liste.txt > user-filtyper.txt
$ grep -i quark user-filtyper.txt > quarkfiler.txt
Well so god. But the are many thousens. And the only way of geting osx to se them as quark files
i have found is to open them, and then save them agen.
I think I have found 2 appelscript dropples to do thise. But then I have to dropp every file one the droplet?
code 1
on open these_items
tell application "QuarkXPress"
repeat with this_item in these_items
open file (this_item as string) use doc prefs yes remap fonts no do auto picture import no with reflow
save front document in (this_item as string)
close front document
end repeat
end tell
end open
code 2
on pathName(fileAlias)
copy fileAlias as string to xx
copy text item delimiters of AppleScript to savedDelim
set text item delimiters of AppleScript to {":"}
set q to count of text items of xx
set filePath to (text items 1 thru (q - 1) of xx as string) & ":"
set fileName to last text item of xx as string
set text item delimiters of AppleScript to savedDelim
end pathName
on open opy
set opx to 1
repeat number of items in opy times
tell application "QuarkXPress"
--open
activate
open item opx of opy use doc prefs yes remap fonts no do auto picture import yes with reflow
set docpath to file path of front document
my pathName(docpath)
tell front document
close saving yes
end tell
end tell
set opx to opx + 1
end repeat
end open
So I wonder if sombody could help me make a script that takes informasjon (path/filname) from the text file.
And open/saves the quark file. And hopfoly everthing works afther that.
I’m sorry for my english. Thise is not my native thoung.
Thanks
Espen
Browser: Firefox 2.0.0.11
Operating System: Mac OS X (10.4)