In Snow Leopard, my script does this ... 1. User responds to choose folder and can create new folders 2. Create a new sparsebundle file in the chosen folder 3. Mount the sparsebundle's disk 4. Create a new folder in the disk
When I run the script on a test user with Standard privileges, step 4 requires an admin user name and password. It should NOT require this.
The offending line of code is ...
set newFolderAlias to (make new folder at diskAlias with properties {name:newName, comment:""}) as alias
where diskAlias is an alias to the just mounted disk. I've tried putting
set ignore privileges of diskAlias to true
before the first line of code, but the problem persists.
Eventually, I discovered that the problem is caused by the "ignore ownership" box on the HD partition not being checked. But, if this is a problem, then it should also be a problem in steps 1 and 2, but it's not.
I'm confused. Is there an un-confuser around?
|