Re: Slight deviation, big problem with script
Re: Slight deviation, big problem with script
- Subject: Re: Slight deviation, big problem with script
- From: Eric Saunders <email@hidden>
- Date: Mon, 23 May 2011 12:12:49 -0400
If I understand you correctly and you have the necessary permissions, I think you should replace the first line with
set x to path to startup disk
That will get you to the top level of the startup disk. If you meant in the applications folder then make the first line
set x to path to applications folder
and you will be set.
Eric Saunders
On Mon, May 23, 2011 at 11:56 AM, Jeffrey Madson
<email@hidden> wrote:
I have attached a script below that works great and has been used extensively. Instead of installing the RRDAuto folder into the Utilities folder I want to install it into a folder called "Options" at the top level of the hard drive now. The "Options folder may or may not already exist when this is run.
In the first line I took out the word utilities and put in Options folder which creates an error. I also changed the set folderpath to line to: set folderpath to (("Options")) as text) & "RRDAuto" but the script never gets that far.
Any suggestions on how to get this script corrected would be greatly appreciated.
-- create RRDAuto folder
set x to path to utilities folder
set y to x & "RRDAuto" as string
tell application "Finder"
if exists y then
else
set y to make new folder at x with properties {name:"RRDAuto"}
my Set_Icon()
end if
end tell
This electronic message contains information from MeadWestvaco Corporation or
subsidiary companies, which may be confidential, privileged or otherwise protected
from disclosure. The information is intended to be used solely by the recipient(s)
named. If you are not an intended recipient, be aware that any review, disclosure,
copying, distribution or use of this transmission or its contents is prohibited. If you
have received this transmission in error, please notify MeadWestvaco immediately
at email@hidden.
_______________________________________________
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