Unter Yosemite keine Scripts möglich ?

H

hottekoltz

Neues Mitglied
Thread Starter
Dabei seit
19.10.2014
Beiträge
9
Reaktionspunkte
0
Hallo !

Ich habe seit gestern Yosemite auf dem Mac. Nun habe ich das Problem, das irgendwie keine Scripts mehr ausgeführt werden können.

Ich bekomme immer die Fehlermeldung "Das Programm "Text" kann nicht geöffnet werden".

Was mache ich falsch ? Was muss ich einstellen, damit dieses wieder ohne Probleme funktioniert ?

Danke für Eure Hilfe !!

Gruß Marco
 
Welche Art von Scripts meinst du?
 
Shell Scripts.
 
und wie führst du die Scripte aus? Ist das "Ausführbar" Bit gesetzt oder versuchst du sie irgendwomit zu öffnen oder versuchst du es im Terminal oder wie?
 
Ich habe die Scripte als Icon im Programmordner.
 
also hast du applescripte als programm gespeichert?
in den applescripten ist dann so was wie
tell application "text" to

soll damit textedit geöffnet werden?
 
Das ist der Code im Script:

(* Reset HOSTS file to factory defaults in case of any oops - Created by The One Byte Wonder - May 2012 *)


display dialog "Warning!! You are about to change your HOSTS file back to factory default. Click OK if you want to proceed and click Cancel if you want to abort now."
if (button returned of the result) as text is "OK" then

do shell script "echo \"##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost\" > /etc/hosts" with administrator privileges
else
quit
end if
 
Dieses Script führe ich ab und zu aus, um meine Hosts Datei aufzuräumen. Leider geht das nun nicht mehr.
 
Zurück
Oben Unten