Applescript MySQL interface (No... not using the shell command)
I'm a windows guy, so please be gentle if I sound noobish.
I'm trying to automate an export of the System Profiler info to a MySQL database directly, and I was hoping to get applescript to parse the info from the XML and push it into MySQL.
Now I know that Applescript can manipulate MySQL by using shell commands for the MySQL command line client, but I was hoping that someone knew of a native applescript interface.
There's MacSQL http://www.macupdate.com/info.php/id/21293 that will give an alternative route into MySQL. I don't know whether it's any better than using shell scripts.
Similar Messages
-
I can not use the patch command. The icon does not show up on th comand bar.
I can not use the patch command. The icon does not show up on th comand bar
Hello there!
Compared to other versions, in CS6 the patch tool is in a different location:
If this doesn't help you, what version of Photoshop are you using?
Please post back with any other questions,
Janelle -
LabView equivalent to running batch files using the "shell" command (VisualBasic)
I'm converting a VisualBasic app to LabView and am having trouble figuring out how to run a batch file with LabView.
The VB code that I'm trying to replicate is:
'UNLOAD RTX DRIVERS
Dim ProcessId As Long
ProcessId = Shell(App.Path + "\UnloadReloadRTX.bat", vbNormalFocus)
Wait 400
I haven't found a LabView equivalent to the Shell command. Any suggestions will be appreciated.
thanks,
ToddIt seems as if this question pops up every week. Use the System Exec.vi found under Funtions - Communications palette. It is the equivalent of Shell.
- tbob
Inventor of the WORM Global -
Can not use the ibfind command in the c file using the usb gpib
can communicate with instruments in max but not with labwindows. ibfind commands doesn't work. any suggestions?
Can you be more specific? What error occurs with IBFIND?
You should probably be using IBDEV instead: see the NI-488.2 for Windows help on your start menu (Programs, National Instruments, NI-488.2) and look up both IBDEV and IBFIND to see the difference.
Also, using NI-Spy will allow you to see what API calls MAX is making; you can copy them in your LabWindows program so that they both work.
Post here if you need more assistance.
Scott B.
GPIB Software
National Instruments -
What i am trying to do is create a program that lets the user have a small conversation with the computer but i don't want to use "else" and list the possible inputs seperatley and have to write the same thing over and over again. does anyone know of a way i can list possible inputs together and have them lead to the same result?
Your script asks the question twice because that's what you tell it to.
The first line of your script asks the question:
display dialog "hey" default answer ""
then you define your lists:
set mylist to ("hi", "hey")
set mylist2 to ("sup", "yo")
Then you ask the question again. This time you capture the result in theanswer:
set theanswer to text returned of (display dialog "hey" default answer "")
The simple solution is to nix the first line of your script, since it serves no useful purpose.
Then, your logic on checking the answer is flawed. If you look at the script in a formatted/indented manner you'll see:
if theanswer is in mylist then
display dialog "what's up"
if theanswer is in mylist2 then
display dialog "dude"
end if
end if
where you can see that theanswer has to be in mylist for any of the rest of this code to run - that includes checking to see if theanswer is in mylist2.
You need to separate this, either into two separate if statements:
if theanswer is in mylist then
display dialog "what's up"
end if
if theanswer is in mylist2 then
display dialog "dude"
end if
or by using an else statement:
if theanswer is in mylist then
display dialog "what's up"
else if theanswer is in mylist2 then
display dialog "dude"
end if
In the first case both checks are performed. In the second case, the second check is only performed if the first one fails (i.e. theanswer has to NOT be in mylist in order for mylist2 to be checked) -
I simply want to open NOTEPAD and automatically load a specified file for modification. I would like it to automatically become active (not minimized).
My code: 'Shell ("C:\WINDOWS\NOTEPAD.EXE", Fname)'. I also tried 'i =
Shell ("C:\WINDOWS\NOTEPAD.EXE", Fname)'.
Both ways produce the error "InvalidCastException".Hello,
Thank you for your post.
I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
and Visual Studio Editor.
I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Version XI Cannot Find File USING VBA Shell Command
I open Adobe Reader from an Access VBA Shell command. After upgrading to Version 11, the Reader opens but I get the Error Message. "Cannot Find File".
This was on a Windows 7 Machine running MS Access 2012. I had an older PX with XP and Access 2003 on it, so I ran the program on it with Version 10 and the Reader opened with the
file passed to it using the Shell command. I updated Adobe Reader to XI on the XP machine and I got the "Cannot Find File" message. I went back to the Widows 7 machine anbd removed Version 11 and reinstalled Version 10 and the Shell command worked like it did before. Does anyone know if there is a work a round for the Version 11 error as I have many many customers that may update to Version 11 and my program is not going to work for this particular function.
Appreciate any help, thanks.Q1 Answer
I use Shell because it has worked for years and it is a build in VBA function and ShellExecute uses Windows API, and I took the easy route.
As I'm sure you know Shell is for exe, com or bat files and ShellExecute enables
the opening of files such as txt, pdf... etc by file association.
Q2 Answer
The exact string is
"C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe" C:\FoxFales Data\FoxFalesStaff\Alerts\GenericSupplies.pdf
The path for AcroRd32.exe is retreived by reading the registry entry "HKEY_CLASSES_ROOT\Software\Adobe\Acrobat\Exe\"
Q3 Answer
If you paste the above command in the CMD shell you get the same result. Reader Opens, but opens with
the message "Cannot Find File".
Newest Results
In the forum I found threads that indicated that if in Security (Enhanced) you had "Enable Protected Mode At Startup"
enabled there were some unpleasant results.
So I turned it off and lo and behold Reader XI with the Shell commandfrom VBA works!
But as a matter of interest I turned it back on and tried the API call ShellExecute, as you so politely suggested,
and...IT WORKED with "Enable Protected mode At Startup" enabled.
I don't understand why Reader XI lets ShellExecute work and not Shell, but I'm happy I have a solution
Thanks for you help -
Error: Message interface is not used by this process Netweaver PI 7.0
Hi All,
I am receiving this error in file to idoc scenario. The file is being picked up by communication channel. Then through an interface mapping IM_MET_ROUTE is being forwarded to a BPM MET_FILE_ROUTE. The MET_FILE_ROUTE forwards it to different BPM depending on file type. whenever I am posting a file it is not reaching IM_MET_ROUTE and giving an error as shown below.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--
Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIAdapter</SAP:Category>
<SAP:Code area="BPE_ADAPTER">MESSAGE_NOT_USED</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Message interface is not used by this process</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Can you please suggest any solution to remove the error.Hi All,
Thanks a lot Vikrant for your suggestion. The error is resolved. This was not a configuration problem. This was a design problem. Initially I also looked for configuration changes but that was correct hence I came to conclusion that this might be a design isuue.
These are the steps that we should follow to resolve the errors
1. First Check your configuration again and again with test tool and payload to find where exactly your configuration is failing.
2. The above step will not be successful since we are already receiving the error.
3. The above test will fail in interface determination step.
4. Please go through the interface determination in Integration repository(PI 7.0).
5. Check whether all interface mapping,source and target message interface are proper or not.
6. if receiver or sender of message is an BPM please look into their receiver and sender element message type.This must match with the one specified in Interface mapping defined within Integration directory( in the interface deterination step).
In my case the sixth step above was the solution. -
BPM : Message interface is not used by this process
Hi,
In BPM : to pass the message facing error as below.
Messages not reflecting in BPM monitor.
I have configured Recveiver - transformation - sender in BPM.
In recvier in BPM is configured with Abstract Type as same in the message mapping.
Is there any thing i am missing?
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIAdapter</SAP:Category>
<SAP:Code area="BPE_ADAPTER">MESSAGE_NOT_USED</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Message interface is not used by this process</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
I have refered links but not able to get the clue for this error as its from the Call adapter.
error: Message interface is not used by this process Netweaver PI 7.0
BPE_ADAPTER: MESSAGE_NOT_USED
Regards,Hi,
I just saw your IP design and from this I can see that you have message mapping between Sender(as in Outbound interface MIOASY) and abstract interface (as in MIAASY) and then in that you have used transformation step to utilise Interface mapping which is between same abstract interface which is not required at all as message type for both the interfaces is same. For me, what your configuration would be is
1. Sender agreement to fetch the message from outbound interface(MIOASY) utilising communication channel with whatever adapter you have used
2. Receiver Determination with Sender and sender interface as MIOASY while receiver as IP(Integration process)
3. Interface determination between
a. Sender and Outbound interface and Abstract interface with interface mapping IM_Sender
b. IP as sender with abstract interface MIAASY and receiver interface MIIASY with no interface mapping being used as it must be of same type as receiver interface is
4. Receiver agreement with MIIASY being used as receiver interface and communication channel utlililsed to convert it into receiver format.
If I am assuming it correct then if you see then inside BPM we are not using receiver interface MIIASY which is why I feel this error is coming.
However, if you design it something like this then I feel the error would get resolved
Design
1. Make one abstract interface (MIAASY_Sen) of same type as sender, and create another abstract interface (MIAASY_Rec) of same type as your receiver message type
2. Create message mapping between sender message type and receiver message type, Interface mapping IM_ABS - (MM_ABS_ABS) between sender abstract interface (MIAASY_Sen) and receiver abstract interface (MIAASY_Rec)
3. BPM should be something like this
Container:*
rec Abstract Interface MIAASY_Sen
send Abstract Interface MIAASY_Rec
Receiver (rec) - Transformation (IM_ABS) - sender (send)
Configuration
1. Sender agreement to fetch the message from outbound interface(MIOASY) utilising communication channel with whatever adapter you have used
2. Receiver Determination with Sender and sender interface as MIOASY while receiver as IP(Integration process)
3. Interface determination between
a. Sender,Outbound interface MIOASY and Abstract interface MIAASY_Sen with no interface mapping
b. IP as sender with abstract interface MIAASY_Rec and receiver interface MIIASY with no interface mapping being used as it is of same type as receiver interface is
4. Receiver agreement with MIIASY being used as receiver interface and communication channel utlililsed to convert it into receiver format.
Let me know if it works.
Regards,
Amit -
Message interface is not used by this process
Hi,
I´ve created a process to get a txt file in the O.S., verify this file and create another file. This verify I´m using BPM but there is an error message:
"SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIAdapter</SAP:Category>
<SAP:Code area="BPE_ADAPTER">MESSAGE_NOT_USED</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Message interface is not used by this process</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>"
Could you help me,
thanks,
RenatoHi Renato,
Can you please elaborate what you did you do to eliminate the problem. I am facing the same one now.
A file is received followed by FCC and then a interface mapping is to be called. somehow the system is unable to find the necessary mapping and giving this error. -
Killing child process, not just the shell
Killing child process, not just the shell
#241 - 07/11/03 11:30 AM
Edit post Edit Reply to this post Reply Reply to this post Quote
Hi,
I am working on a system for automatically testing student submissions on an introductory course about unix scripting. The program works by running a test script on a student submission, using Runtime.getRuntime().exec(). The Process object has a limited life span of 10 seconds (by default), and if it is still running after these 10 seconds, Process.destroy() is used to kill it.
A bug exists when one of the submissions being tested times out. When the destroy() method is used it leaves a child process running... since students can also run
some tests from the file submission client, the number of hanging processes soon adds up as they test and test again to get it right before submission. Eventually this results in too many processes and the server keels over.
Does anyone have any ideas on killing these hanging processes?Not much help, but I think this is a known bug ...
http://developer.java.sun.com/developer/bugParade/bugs/4770092.html -
the problem I have since I upgraded to Mavericks version 10.9.1
The problem appears only with Mail not with other programs, not even with my browser.
When I try to zoom the text of an e-mail I received or sent , I can no longer use the keys Command + to enlarge the text, although I can reduce it with Command -.
As I have a problem with my eyes, This is a serious matter for me.
When I write an e-mail, if I select text and press Command +, it just displaces the text to the right.
Now, my husband has a USB keyboard. If he connects it to my computer, his regular Command + does not work either, but he uses the extended keyboard, then it works. Unfortunately, he needs it for a musical application which does not work with a wireless keyboard.Firefox 3.6.4 and 3.6.6 use a process called, "plugin-container.exe" which was using up most of my CPU when I opened up multiple tabs that contained Adobe Flash files, and caused Firefox to lock up.
My solution was to use Firefox 3.5.10 which you can get from the Mozilla website at [http://www.mozilla.com/en-US/firefox/all-older.html]
I am using Adobe Flash 10.1.53.64 without any problem in this version of Firefox. Check the release notes, I believe it contains all the latest security fixes in "Firefox 3.6.4".
Hopefully, they will fix Firefox 3.6 in the next version (e.g. Firefox 3.6.7), until then you should probably use "Firefox 3.5.10". -
How to I get a link with a "Mail to" address to open up a Compose window in my Yahoo mail, rather than in the Mail progrom on my Mac. I do not use the Mac Mail program.
== This happened ==
Not sure how often
== alwaysThank you, "the-edmeister" -- You render a great service, one that lifts my spirits.
Your answer also taught me to be a little more persistent, as I had started looking at Preferences, and just didn't notice the icons (including Applications) at the top of that window that would have led me to my answer.
Dave -
The application does not use the screen and run in the background
Hi
I have downloaded a package of j2me Midlet
from [link] here [link]
and try to reuse the code
but I get the following error when running the code:-
The application does not use the screen and run in the background
I think the error into one of these two classes
package main;
import javax.microedition.midlet.*;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.media.Manager;
import javax.microedition.media.MediaException;
import javax.microedition.media.Player;
import java.io.IOException;
import java.io.InputStream;
public class MainMidlet extends MIDlet implements CommandListener {
private SSGameCanvas gameCanvas ;
private Command exitCommand ;
private Player player = null;
public void startApp() {
try {
// create new game thread
gameCanvas = new SSGameCanvas();
gameCanvas.start(); // start game thread
exitCommand = new Command("Exit",Command.EXIT,1);
gameCanvas.addCommand(exitCommand);
gameCanvas.setCommandListener(this);
Display.getDisplay(this).setCurrent(gameCanvas);
catch (java.io.IOException e)
e.printStackTrace();
try {
// start sounds
InputStream in = getClass().getResourceAsStream("/resource/startfly.wav");
player = Manager.createPlayer(in,"audio/x-wav");
player.setLoopCount(1);
player.start();
catch (MediaException ex)
ex.printStackTrace();
catch (IOException ex)
ex.printStackTrace();
public void pauseApp() {
public void destroyApp(boolean unconditional) {
if (player != null) {
player.close();
System.gc();
public void commandAction(Command command, Displayable displayable) {
if (command == exitCommand)
destroyApp(true);
notifyDestroyed();
package main;
import java.io.IOException;
import javax.microedition.lcdui.*;
import javax.microedition.lcdui.game.*;
public class SSGameCanvas extends GameCanvas implements Runnable {
protected GameManager gameManager;
protected boolean running;
private int tick=0;
private static int WIDTH;
private static int HEIGHT;
private int mDelay = 20;
Form mainForm;
Display display;
//private int MaxTime;
public SSGameCanvas() throws IOException{
super(true);
gameManager = new GameManager(5,5,getHeight()-10,getWidth()-10,this);
public void start() {
this.running = true;
Thread t = new Thread(this);
t.start();
public void stop() {
running = false;
public void render(Graphics g) {
WIDTH = getWidth();
HEIGHT = getHeight();
// Clear the Canvas.
g.setColor(0, 0, 50);
g.fillRect(0,0,WIDTH-1,HEIGHT-1);
// draw border
g.setColor(200,0,0);
g.drawRect(0,0,WIDTH-1,HEIGHT-1);
// draw game canvas
gameManager.paint(g);
public void run() {
while (running) {
// draw graphics
render(getGraphics());
// advance to next graphics
advance(tick++);
// display
flushGraphics();
try { Thread.sleep(mDelay); }
catch (InterruptedException ie) {}
public void advance(int ticks) {
// advance to next game canvas
gameManager.advance(ticks);
this.paint(getGraphics());
}Edited by: VANPERSIE on Jul 10, 2012 12:26 PMHi Andi,
Thanks for your reply.
Yes, I have waited for a while and the result doesn't change.
The Porblem here is the application is seen started in visual administrator.Only restart brings up the page back.
Can you please suggest anything.
Thanks and regards
Nagaraj -
In my numeric key pad I can not use the decimal dot (.) because it has a (,) and this not work with decimal calculations. What I can do? Help ………
IT NOT WORK IN MEXICO. THANKS A LOT. BEST REGARDS. MANUEL LOPEZ
El 6/2/2015, a las 16:50, Apple Support Communities Updates <[email protected]> escribió:
You received a reply
SGIII has replied to your question. You can view the full discussion in Apple Support Communities.
In my numeric key pad I can not use the (.) dot because it has a (,) and it is not working in calculations. What I can do?
Correct Answer Helpful Answer
Use the buttons above to tell SGIII and the rest of the community if this reply solved your question or helped you get closer to finding a solution.
To reply to SGIII, go to the discussion in Apple Support Communities.
You are receiving this email from Apple Support Communities. You can change your email preferences in your Apple Support Communities Profile.
TM and copyright © 2014 Apple Inc. 1 Infinite Loop, MS 96-DM. Cupertino, CA 95014.
All Rights Reserved | Privacy Policy | Terms of Use | Apple Support
Maybe you are looking for
-
I movies synced to cloud do not show up on all devices
I have been putting old home videos into iMovie and some show up in my theater on my Mac, others on my iPad and still others on my Apple TV. Not all videos in all places. Some duplicates, but others only show up on one device. When I try to downlo
-
How do I get my monitor to be the correct color?
I just got my laptop and I'm a photographer. It is very important to get my laptop similar in color to my photos. So when they are printed they look similar to most basic commercial printer (Walgreens etc) I had no problem on my old computer. My S
-
Unable to access EJB in J2EE 1.4 RI
Hello, I am trying to connect to an EJB (in J2EE 1.4 RI) from a client using following code: Context init = new InitialContext(); Object ref = init.lookup("java:comp/env/ejb/EJBName"); It appear that client is not connecting to the naming (JNDI) serv
-
Hello Experts, I am preparing a ALV report in that i want to display fields in a such a way that under a heading i need to have two sub headings ie, for example under a material heading i need to display material no and code
-
How to revert copied and pasted Develop Settings to raw files.
Using Bridge 2.1.1.9 and just discovered this handy workflow scheme. Was wondering if there was a way to go back to the previous setting after applying a Develop Setting copied from another file within Bridge. There doesn't seem to be or at least I h