Re: Disk Properties
Re: Disk Properties
- Subject: Re: Disk Properties
- From: Luther Fuller <email@hidden>
- Date: Tue, 24 Jul 2012 15:53:38 -0500
On Jul 24, 2012, at 3:10 PM, koenig.yvan wrote: Shane Stanley's ASObjC Runner.app may be your friend.
set aDisk to "Epson:"
tell application "ASObjC Runner" {owner privs, group privs, everyones privs} of (about file aDisk) --> {"rwx", "r-x", "r-x"} end tell
Thanks, but in this case I needed to test for writability = not a readonly image disk, not for permissions.
I have decided to use the 'startup' property of a disk to solve this problem.
One of my users double-clicked the copy of my application on the distribution .dmg image disk. This caused a problem that I had not considered. I am going to write code something like this ...
on run tell application "Finder" if not startup of disk of (path to me) then display dialog "You must copy this application onto the startup disk where it will be used." error number -128 end if end tell
-- continue with normal operation
end run
which will prevent a bad situation.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden