• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Disk Properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Disk Properties
      • From: Ron Hunsinger <email@hidden>
References: 
 >Disk Properties (From: Luther Fuller <email@hidden>)
 >Re: Disk Properties (From: "koenig.yvan" <email@hidden>)

  • Prev by Date: Re: test email
  • Next by Date: Re: Disk Properties
  • Previous by thread: Re: Disk Properties
  • Next by thread: Re: Disk Properties
  • Index(es):
    • Date
    • Thread