M
Macisiert
Mitglied
Thread Starter
- Dabei seit
- 05.07.2005
- Beiträge
- 33
- Reaktionspunkte
- 0
weis jemand von euch evtl wie ich in apple script den current user abfragen kann und je nach user dann über den finder ect. seine bilder oder so öffnen kann? weil zz hab ich das nur so:
source:
set stringToBeDisplayed to "Set user"
display dialog stringToBeDisplayed buttons {"Claus", "Bernhard"} ¬
default button 1
set the button_pressed to the button returned of the result
if the button_pressed is "Claus" then
tell application "Finder"
open folder "Mac HD:users:clausdictures"
end tell
else if the button_pressed is "Bernhard" then
tell application "Finder"
open folder "Mac HD:users:bernhardictures"
end tell
end if
mfg bernhard
source:
set stringToBeDisplayed to "Set user"
display dialog stringToBeDisplayed buttons {"Claus", "Bernhard"} ¬
default button 1
set the button_pressed to the button returned of the result
if the button_pressed is "Claus" then
tell application "Finder"
open folder "Mac HD:users:clausdictures"
end tell
else if the button_pressed is "Bernhard" then
tell application "Finder"
open folder "Mac HD:users:bernhardictures"
end tell
end if
mfg bernhard