OS X V10.7 Lion :: Use A Java Program To Write An Executable Applescript

Mar 31, 2012

I'm using a PC with Windows XP. I'm a private developer. I've written a project in Java and wish to deploy it to other people using email. I've written an Install program (the Main-Class) and successfully packed this in a jar file with the project class files and some data files all as described in the deployment trail in the Java Tutorials. A recipient with a Mac with OS X downloads the jar file and runs it to install the project class files and some data files. The install program then writes an Applescript file (Vocab.scpt shown below) on the Desktop to make starting my downloaded program easier but it doesn't seem to work and I think it may be because the script file is not "executable". Could this be the case? If so, how could I change my install program to make the script file executable or alternatively use some other system to start the downloaded program?

Vocab.scpt:-

# Script to start: Vocab Version: 1.0.0

do shell script "cd /Applications/Vocab; Java Vocab"

Unfortunately I don't have a Mac to experiment with this problem and although I have spent some days on and off trying to find an answer in the mass of information available on Apple's website I can only find small clues here and there to answer my problem (which I would have thought was quite a common one). In Windows a batch file (eg. Vocab.bat) is automatically executable.

Info:
MacPro, Mac OS X (10.5)

View 4 Replies


ADVERTISEMENT

OS X V10.7 Lion :: Make Applescript Open More Than One Program At Once?

Jun 23, 2012

I made the code below to use together with another 2 codes. One that mounts a samba share and another that runs rsync with specific parameters. The script below runs after rsync complete its task.

The 3 codes me to test my HTML/CSS/PHP/Javascript code changes.This code works but I have to repeat it to each browser/app I want and a 10 lines script becomes 40 lines (Google Chrome, Firefox, Opera and Safari). Is there a more elegant way to do that? I've tried to use an array/list but didn't work. 

if application "Safari" is running then    tell application "Safari" activate    end tell    tell application "System Events" tell process "Safari"  keystroke "r" using {command down} end tell    end tellend if

Info:
Mac mini (Mid 2011), Mac OS X (10.7.4)

View 1 Replies View Related

OS X V10.7 Lion :: Downloaded Wrong Airplane Mode Program - AppleScript Error Message

Jun 21, 2012

So I downloaded the wrong Airplane Mode program for my operating system and I now have AppleScript Error message. It will not allow me to quit the program. Also, once that happens how do I remove the program from the computer?

Info:
MacBook Air, Mac OS X (10.7.4)

View 1 Replies View Related

Intel Mac :: Force A Program To Use Java 6 Instead Of Java 7?

Apr 16, 2012

how can i force a program to use java 6 instead of java 7?im trying to use tekkit (minecraft mod) and i need java 7 for the sever but java 6 for the lancher?how i could force the lancher into using java 6?

Info:
iMac (27-inch Mid 2011), Mac OS X (10.7.3)

View 4 Replies View Related

OS X V10.7 Lion :: App Won't Start, But Executable Does

Jun 25, 2012

Some Apps, (e.g. VLC Player, but others also) won't start if I open them regularly, they're just bouncing in my Dock until I kill them.

BUT, if I open the App as a folder (Rightclick, Show Package Contents) and find the executable (Contents/MacOS) and start it, it works just fine. Launching the shouldn't do much other than location this executable and running it.

View 13 Replies View Related

Applications :: Program To Write Math Equations?

Aug 26, 2008

I need to be able to write math equations that I can save to a pdf. Pretty much instructions on how to do different problems. I will need graphs, and all the math symbols that are out there. Does anyone know of a program that has this for mac? I need to create equations and the solutions to those equations. (Almost like writing a math book)

View 14 Replies View Related

OS X :: Textedit - Write In The Program And Save It Onto My Computer

Feb 3, 2009

I have just purchased my first apple. It is a powerbook g4 with leapord. My problem is that I have school projects that need to be done in text edit(apples version of notepad if im correct) I write what i need to write in the program and save it onto my computer. Then upload these saved files into a drop box that is located on my schools website(angel program). But when my professors try to open it. It says no files submited, even though i have submited them. I know it has to do with my apple because when I use microsoft notepad, the files will submit and can be opened. my whole school uses microsoft.

View 2 Replies View Related

OS X Technologies :: Security Content Of Java For Lion 2012-002 And Java For Mac 10.6 Update 7?

Apr 5, 2012

What has been released to install as a security update? I seem to be clicking on one web link which takes me to another and nothing to actually install. Typical Apple. Really wish I hadn't bought this MacCrap Air - I do miss my PC.

Info:
MacBook Air, I bought it Oct 2011

View 1 Replies View Related

OS X Technologies :: Security Content Of Java For Lion 2012-002 And Java For Mac OS X 10.6 Update 7?

Apr 7, 2012

I am running OS 10.5.8 on an iMac. There is no security update issued for this operating system - it only covers 10.6. Is my comuter vulnerable? Do I need to do anything?

Info:
iMac, Mac OS X (10.5.8)

View 6 Replies View Related

OS X V10.7 Lion :: Dmg Files Are Not Executable - Need To Reinstall It ( But Will Mount)

Apr 18, 2012

iMac 27, 2.8 Quad Core, 16 GB RAM, 3 TB HD running 10.7.3 lead in > Lately I am having trouble with Aperture 3.2.3 who doesn't let me make some image adjustments "out of the blue". To correct this I usially have to reinstall Aperture from scratch. Trying to do so made me find out that I can't execute the Aperture trial 3.1 dmg file or any other dmg file on my iMac. When i double klick on a dmg file it will flash once and then just sit there doing nothing. The dmg "Get Info" window shows that the file is associated with the DiskImageMounter.app as supposed to. I have no glue why it won't execute these files and open the installer. I have tried everything from executing with disk image to repair permissions etc, etc. and I have read all forums and threats I could find but to no avail.  

The only way to fix this is reinstalling OSX 10.7.3. After reinstalling Lion everything is just fine  - for a while. I am able to reinstall aperture with the trial version dmg file. All other dmg files will also execute. For now I was able to work with my reinstalled system for the last seven days with no glitches, but last night same problem occured as described earlier. I have also checked my harddrive with disk utility and onyx. Both apps say HD is just fine.

Info:
iMac, Mac OS X (10.7.2), Quad Core 2.8, 27, 8GB RAM

View 1 Replies View Related

OS X V10.7 Lion :: Unable To Run Java Web Start Post Java 1.7.0_5 Installation

Jul 6, 2012

I was running java 1.6.0_33 on my Mac Lion and later I installed java 1.7.0_05. Now in my Java preferences I see both the Java SE available.Now my problem is when I enable Java 7(& select Enable applet plug-in and Web start applications), my JNLP file doesn't run with java web start, from Safari as well as Firefox. When I try running the jnlp using Open With option and selecting Java Web Start present in /System/Library/CoreServices, nothing happens. 

When I try running the JNLP file from Terminal suing command /System/Library/CoreServices/Java Web Start.app/Contents/MacOS/Java Web Start xyz.jnlp I get following error 

Java Web Start splash screen process exiting... Can not find message file : No such file or directory. 

Info:
Mac mini, Mac OS X (10.7.2)

View 2 Replies View Related

OS X :: Write Program - Play Music Video While Opening

Feb 26, 2009

I had this hilarious idea to write a program for my schools computers. I want to make so that when people open it all it does is play the music video for "Never Gonna Give You Up" by Rick Astley. I want it so that it will not stop playing and you cant quit out of it. Does anyone have ideas on how to do this?

View 5 Replies View Related

OS X V10.7 Lion :: Java Apps Won't Run, Java Preferences Won't Launch

Apr 27, 2012

Since the flurry of 2012 updates, Java is completely broken on my Mac Pro.  Java dependent apps don't start and Apple Support says to enable the apps in Java Preferences. Nice idea, but Java Preferences WILL NOT LAUNCH either. There were plenty of tools to address flashback and they DID NOT break normal day to day operations.I downloaded the package from support to try a re-installation, but it says "A newer version of Java is already installed" and offers me the option to Close. No reinstall, nothing. Apple support is at it's usual level of service on this issue, completely INVISIBLE. 

Info:
Mac Pro, Mac OS X (10.7.3)

View 1 Replies View Related

IMac (Intel) :: Accounts Program Won't Run Without Legacy Java SE6 Runtime Since Upgraded To OS X Yosemite

Dec 1, 2014

My "Solar" accounts program won't run without "legacy Java SE6 runtime" since I upgraded my iMac desktop to OS x Yosemite but I can't download it, nothing happens when you click on the link to apple support

Info:
iPad

View 1 Replies View Related

OS X V10.7 Lion :: Download A File Through AppleScript

Apr 10, 2012

I've been trying several different methods to download a file through Applescript. I've looked at different sites/discussions and I've tried to use curl, wget, and some other ways, however I still can't get it to download the file. It'll either just not download, or no URL specified. [code]

Info:
Mac Mini, Mac OS X (10.7)

View 2 Replies View Related

OS X V10.7 Lion :: Run Avconvert, The Video Encoder, With Applescript?

Mar 1, 2012

I've seen some demonstrations of using the built in encoding feature with automator or in with a command line but can you tell it in applescript?  

tell application "avconvert" resize selected video to 480p endtell 

Or how do you run avconvert in a command line through applescript? 

Info:
iMac, Mac OS X (10.7.2)

View 4 Replies View Related

OS X V10.7 Lion :: Remove An Applescript Droplet From Finder?

Jun 27, 2012

I installed a droploet into Finder, now I can't get rid of it. Scoured the internet and no one says how to remove them, only add them. What's the method for getting rid of them?

Info:
MacBook Pro, Mac OS X (10.7.4)

View 14 Replies View Related

OS X :: Unable To Write External Hard Disk In Mac / Can Read Write In Windows

Feb 15, 2011

i had a External Harddrive.Currently i can Read//Write on it in Windows PC(Windows7)But when i use the same drive in Mac i can only read...but can't able to write. How to resolve this issue

View -1 Replies View Related

OS X V10.7 Lion :: Create A Multiple Find And Replace For Excel In AppleScript?

Apr 15, 2012

I have a large dataset in Excel that I have to do a multiple find/replace in (changing USPS state abbreviations to their full names). In searching the Microsoft boards--I was directed to use Applescript, and even the documented help with Excel was recommeding this. Unfortunately, there wasn't much help potinting me in the specific direction I needed.

View 2 Replies View Related

OS X Mountain Lion :: How To Convert A String Like12:34 To Applescript Timestamp

Jun 3, 2014

How would I convert a string like 12:34 to an Applescript timestamp? I'd like to be able to add/subtract minutes to/from such items; i.e., to be able to use 12:34 + 6 minutes, for example.

Info:
iMac, OS X Mountain Lion (10.8.5), iMac 24" 2.8 ghz 4 GB RAM

View 1 Replies View Related

OS X Technologies :: HT5247: About The Security Content Of Java For OS X 2012-003 And Java For Mac OS X 10.6 Update 8

Apr 13, 2012

It will not update

Info:
MacBook Pro (17-inch Early 2008), Mac OS X (10.7.3)

View 6 Replies View Related

OS X :: Downloaded MS DOS Executable File

Dec 29, 2009

I was just looking up the songs of the noughties, and I came across what appeared to be a blog, judging on the description google gave me. However on later inspection it appeared to be a kitchen website. Anyway on the website there was what appeared to be a video, and I was asked to do something, although it was in a windows style 'window' rather that the OS X style. I was promoted to download something from [URL] and I clicked ok, as this window would not go away otherwise, however I cannot find it on my mac, and it says it was an ms-dos executable file, does that mean it will not work on my mac? Here is the blog: [URL]

View 4 Replies View Related

OS X V10.6 Snow Leopard :: Does Java/Java Applets Work In 10.6

Apr 15, 2012

I made a Java applet with Xcode 3.2 and i load it to firefox or Safari(Yeah i've updated my java)and for example 

i made a HELLO WORLD simple applet to be in black color letters, then compiled and yeah it worked but then i redid it for the letters to be red.. and they kept being black..no matter how many times i recompiled the applet. 

And yeah the HTML is pointing to the correct class file. Also, If if i add a Thread and implement runnable.. then nothing shows up in the canvas. 

And also, what ever happened with the appletviewer application? We don't have that anymore.

now the only way to run applets is through a web browser.  Is java applet developement in 10.6 really over?

Info:
Mac OS X (10.6.7)

View 2 Replies View Related

MacBook Pro :: My IPhoto Is No Longer Executable

Mar 24, 2012

Recently Ive purchased the mac app "Iboostup" and used the app shrinkinking function. I followed the steps the app gave me which was "replace the shruken apps with the old ones". In which case I did and all the programs worked except for Iphoto. Which Is quite annoying because that is my whole entire photo library. Im not too sure if my photo's have been deleted now and Im quite worried to the outcome Im going to get. Please respond as Im very anxious.

[code]...

Info:iPhoto '11, Mac OS X (10.7.3)

View 3 Replies View Related

OS X V10.7 Lion :: Write To Bootcamp Partition?

Feb 17, 2012

How can I read and write on my Bootcamp partition?

Info:
MacBook Pro 17, Mac OS X (10.6.3)

View 1 Replies View Related

OS X V10.7 Lion :: Makes It To Write Password But Nothing Happens?

Apr 30, 2012

I am about to buy os x lion, and all it does is makes me type my password, and loads and literally nothing happens. I have restarted my computer multiple times but nothing is working..

Info:
MacBook
Pro, Mac OS X (10.7.3)

View 6 Replies View Related

Applications :: What Is Unix Executable File - Can It Be Opened

Jun 22, 2010

I was sent a .mcd file for Vectorworks by a colleague and the file has come up as an exec file. What is this, is it corrupt and can it be revived?

View 6 Replies View Related

OS X V10.5 Leopard :: Fonts Showing Up As Unix Executable

Feb 1, 2012

i've searched the forums about fonts showing up as unix executable and haven't been able to find a solution - is there any way to restore the fonts? currecntly, the fonts are showing up as 0kb or 4kb.

Info:
mac book pro, Mac OS X (10.5.6)

View 1 Replies View Related

OS X :: Updating Java / Not Automatically Grab Java 1.6?

May 10, 2009

I am brand new to Mac (I got a G4 laptop in trade to replace a dead windows desktop).I am trying to install Limewire and it tells me that I cannot: "could not launch application because it requires a version of Java that is not installed". It goes on to acknowledge that it can see everything up to 1.5...but that I need 1.6.

So, I go to Software Update and make sure that I have 1.6. It tells me that there are no new updates, that my computer is up to date.I think I recall being told that I am running Leopard on this laptop.If java 1.6 is available, and I do not have it, and my computer tells me that there are no new updates that my computer needs and will not automatically grab java 1.6, yet I need it to install anapplication....what are my options?

View 3 Replies View Related

OS X V10.7 Lion :: File Permissions Are Not Set To Read & Write For Everyone?

Apr 3, 2012

I have a shared folder on Lion Server. The permissions for the folder are set to everyone can read & write. When I add files from another computer to the shared folder the file permissions are not set to read & write for everyone. Is there a setting I am missing on the server to make all files added over the network to have the same permissions as the folder?

Info:
Mac mini, Mac OS X (10.7.3)

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved