Toast Titanium - MountImage

H

H.Stony

Aktives Mitglied
Thread Starter
Dabei seit
27.03.2004
Beiträge
562
Reaktionspunkte
0
ich bekomme diesen befehl einfach nicht zum laufen.... mein code:
Code:
tell application "Toast 6 Titanium"
	mount image "/Volumes/iMac HD/test.toast"
end tell

wie muss ich denn den pfad angeben?

danke mfg h.stony
 
wie gibt man bei anderen programmen in applescript pfade an....bekomm es einfach nicht raus
 
mit
Code:
tell application "Finder"
	open folder "iMac HD"
end tell
so komme ich nun auf das volume iMac HD zu, aber wie komme ich auf die ebene darüber zu..also wie komme ich auf / zu?
 
Ich dachte, "iMac HD" == "/" kopfkratz
 
nein
iMac HD ist Startvolume und liegt in:
/Volumes
--> kann man ja im Terminal nachprüfen

das eigentliche problem ist, dass man über apple script (zum Beispiel finder) nicht auf fileVault laufwerke zukommt. also könnte ich über /users zugreifen...
 
in applescript sind pfade mit ":"
wenn du "/" dafür verwendest musst du das unter applescript mit posix_path machen
 
dast mit ":" hab ich schon rausgefunden..aber auf filevaulted home verzeichnisse komm ich nicht zu daher möchte ich gerne auf die oberste root ebene zugreifen und von dort aus auf users zugreifen weil da das image vom filevault ordner eingemountet sein müsstter
 
Naja, Du hast schon Recht, aber iMac HD im Ordner Volumes ist auch nach / eingebunden. Also das, was Du im Ordner /Volumes/iMac HD findest ist AFAIK identisch mit dem Krams in /
...zumindest bei mir im PB
 
H.Stony schrieb:
Code:
tell application "Toast 6 Titanium"
	mount image "/Volumes/iMac HD/test.toast"
end tell

wie muss ich denn den pfad angeben?
Code:
on run
	tell application "Finder"
		activate
		display dialog "Bitte ziehen sie ein oder mehrere Toast ¬
		Images auf das AppleScript Droplet" buttons {"Verstanden"} default button 1 with icon 1
	end tell
end run

on open (theItems)
	with timeout of 1000000 seconds
		try
			tell application "Toast 6 Titanium"
				repeat with oneItem in theItems
					mount image theItems
				end repeat
			end tell
		on error errmsg
			display dialog errmsg
		end try
	end timeout
	quit application "Toast 6 Titanium"
end open

Gruss von IceHouse
 
danke .. schaut gut aus
 
Zurück
Oben Unten