View Full Version : Mac OS X -- The AppleScript Way
mudpyr8
Apr 15th, '03, 06:12 PM
Now, while I love shell scripts, I would certainly prefer some form of .app for the Mac OS X solution.
Well, AppleScript is the easiest way to do this.
I created a script and compiled it to run as an application. I added the HD icon. You can now drag this to your dock and it will act like an application.
Ahh, but my path is not the same as yours. So instead I will post the script which you can then save as an application once you edit the script.
AlbertDeschesne
Apr 18th, '03, 09:32 AM
Originally posted by mudpyr8
Now, while I love shell scripts, I would certainly prefer some form of .app for the Mac OS X solution.
Well, AppleScript is the easiest way to do this.
I created a script and compiled it to run as an application. I added the HD icon. You can now drag this to your dock and it will act like an application.
Ahh, but my path is not the same as yours. So instead I will post the script which you can then save as an application once you edit the script.
I tried to edit your script but when I tried to open the script in the editor this is the error message I got:
Could not read the dictionary of the application or extension because it is not scriptable.
Maybe it was damaged in the zipping process? I'm sure the boards can handle a stuffit archive. Could you please repost?
AlbertDeschesne
Apr 18th, '03, 09:44 AM
Originally posted by AlbertDeschesne
I tried to edit your script but when I tried to open the script in the editor this is the error message I got:
Could not read the dictionary of the application or extension because it is not scriptable.
Maybe it was damaged in the zipping process? I'm sure the boards can handle a stuffit archive. Could you please repost?
Nevermind -- I was able to open the file with text edit... The extension threw me. Thanks for the script -- I like not having the terminal open all the time. Also, Dan, if you're reading this, this may be a work around for the launcher as it will work as long as you have HD in the default directory.
mudpyr8
Apr 18th, '03, 10:04 AM
You should be able to get applescript to know what directory it is being launched from and use that on the cd of the shell command. That would get it to work as long as it was in the same direcotry as the jar files.
I'm not an applescript guy, I was just playin' around with it. Works well for me tho.
AlbertDeschesne
Apr 18th, '03, 10:10 AM
Originally posted by mudpyr8
You should be able to get applescript to know what directory it is being launched from and use that on the cd of the shell command. That would get it to work as long as it was in the same direcotry as the jar files.
I'm not an applescript guy, I was just playin' around with it. Works well for me tho.
Oh, I got it to work -- I just changed the directory path. And now it's working fine... the Icon I had to paste on the Applescript App, though.
I still have HD in the Applications directory -- so any applescript app I make should work for anyone with HD still in the default directory.
Thanks again for doing this, even if yer not an "applescript guy".
mudpyr8
Apr 18th, '03, 10:26 AM
No prob, I'm just trying to think of ways to improve the script. I've always liked applescript, I'm just more of a python guy. I think the ability for applescript to run shell scripts is incredibly powerful. I intend to explore this much more when I have the time.
Glad I could help.
Tasha
Apr 18th, '03, 11:57 PM
Originally posted by mudpyr8
No prob, I'm just trying to think of ways to improve the script. I've always liked applescript, I'm just more of a python guy. I think the ability for applescript to run shell scripts is incredibly powerful. I intend to explore this much more when I have the time.
Glad I could help.
I would love to use this but what I know of Unix you could fit in a thimble and still not have a full drop.
Could anyone upload a version that has herodesigner installed in the default Applications folder.
Goddess I hate unix. :( I use a Mac so I don't have to deal with this command line BS.
Well thanks to everyone :D
Tasha :)
AlbertDeschesne
Apr 19th, '03, 01:07 AM
Originally posted by Tasha
I would love to use this but what I know of Unix you could fit in a thimble and still not have a full drop.
Could anyone upload a version that has herodesigner installed in the default Applications folder.
Goddess I hate unix. :( I use a Mac so I don't have to deal with this command line BS.
Well thanks to everyone :D
Tasha :)
Okay -- change the extension to .sit so you can open it...
Tasha
Apr 19th, '03, 08:58 AM
Originally posted by AlbertDeschesne
Okay -- change the extension to .sit so you can open it...
It worked!!! Thank you!! Thank You!! :D
Tasha :D
:D :D :D
Powered by vBulletin® Version 4.2.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.