Apple Script zum Entcrpyten gesucht

sunflash

sunflash

Aktives Mitglied
Thread Starter
Dabei seit
16.06.2009
Beiträge
358
Reaktionspunkte
12
Hallo allerseits.

ich habe ein PDF-Dokument welche ich mittels eines Skriptes entcrypten möchte. Allerdings funktioniert das Ganze nicht. Hat jemand eine Idee, was ich falsch mache? Er sagt mir immer no such file or directory.

Code:
set this to the POSIX path choose file with prompt "Select PDF-file to clean:"

set this_path to the POSIX path of this

#display dialog (this_path)

do shell script "/Users/xxxxxx/Desktop/1234/mupdf/pdf_crypt.c " & this_path & " " & this_path & "_unrestricted.pdf"

-- or if the file is drag and dropped

on open these
	
	repeat with this in these
		
		set this_path to the POSIX path of this
		
		#display dialog (this_path)
		
		do shell script "/Users/xxxxx/Desktop/1234/mupdf/pdf_crypt.c " & this_path & " " & this_path & "_unrestricted.pdf"
		
	end repeat
	
end open
 
ein .c ist nicht ausführbar sondern source code ;)
 
Ja, ich habe es dann noch mal geändert. Kam aber immer auf den gleichen Fehler. Suche halt das Tool pdfclean von MuPDf. Allerdings funktioniert es nicht.
 
dann stimmt der pfad ja nicht...
zieh mal die datei in das terminal fenster, dann solltest du den vollen pfad haben...
 
Zurück
Oben Unten