Hi Thomas,

much appreciated.....

How can I open a folder on the users desktop???

On a mac use Applescript:

on apfelschreib pPath
## apfelschreib = applescript literally translated into german :-)
## WIll open any file or folder (pPath) in the finder...
put pPath into pfad
set the itemdel to "/"
put item -1 of pPath into datei
delete item -1 of pPath
replace "/" with ":" in pfad
put "tell application " & quote & "Finder" & quote & cr & "activate" & cr & "open" && quote & (pfad) & quote & cr & "end tell" into tScript
do tScript as AppleScript
end apfelschreib


If you want to SELECT the file or folder in the finder, simply replace "open" with "reveal" in
the applescript:
...
put "tell application " & quote & "Finder" & quote & cr & "activate" & cr & "reveal" && quote & (pfad) & quote & cr & "end tell" into tScript
...



Windows: To open a file/folder:

on winselect pPath
  replace "/" with "\" in pPath
  set the hideConsoleWindows to true
  get shell("explorer.exe /root,"& quote & pPath & quote)
end winselect

To select a file/folder in its parent window:

on winopen pPath
  replace "/" with "\" in pPath
  set the hideConsoleWindows to true
  get shell("explorer.exe /select,"& quote & pPath & quote)
end winopen

Hope that helps...

thanks

tom

Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to