here is my script
set sourceFolder to (choose folder)
set path of browser "Browser" of group 0 of sheet 1 of currentWindow to sourceFolder
but i keep getting this error:
System Events got an error: Can’t make path of browser “Browser” of group 0 of sheet 1 of window “Connect to a Server” of application process “ZigVersion” into type reference.
I am assuming it is because i don’t have the right location of the browser…
this is what UIElemenInspector gives me:
<AXApplication: "ZigVersion">
<AXWindow: "Connect to a Server">
<AXSheet>
<AXGroup>
<AXSplitGroup>
<AXBrowser> <-- this is what i need!!
<AXScrollArea>
<AXScrollArea>
<AXList>
Attributes:
AXRole: "AXList"
AXRoleDescription: "list"
AXHelp: "(null)"
AXFocused: "0"
AXParent: "<AXScrollArea>"
AXChildren: "<array of size 11>"
AXWindow: "<AXWindow: "Connect to a Server">"
AXTopLevelUIElement: "<AXSheet>"
AXPosition: "x=836 y=305"
AXSize: "w=171 h=242"
AXEnabled: "1"
AXSelectedChildren (W): "<array of size 1>"
AXVisibleChildren: "<array of size 0>"
AXOrientation: "AXVerticalOrientation"
if anyone can help me get the right reference and set the path for it to example: Machintosh HD:user:
that would be wicked.
THANKS!