Thanks in advance for any help. I’m sure this will prove to be a silly mistake on my part but I have spent several hours wading through the docs before coming here.
My application includes the following code:
set item_ to "path:to:folder"
tell application "Finder"
tell folder item_
set owner_ to owner
set group_ to group
set owner_privs to owner privileges
set group_privs to group privileges
set everyone_privs to everyones privileges
end tell
end tell
display alert "Owner Priv: " & owner_privs
If I debug the application the alert displays “Owner Priv: read write” (or whatever) as I would expect.
However, when I run the application the alert displays something like:
“Owner Priv: <<constant ****rdwr>>”
Any help would be greatly appreciated as this is causing me a high level of frustration!
Also if insert the following line into the above snippet
if owner_privs is equal to read write then
display alert "It's read write"
end if
then the Xcode editor changes mt code to read:
if owner_privs is equal to (read (write)) then
display alert "It's read write"
end if
which gives an AppleScript error “Some parameter is missing for write”