Applescript to launch an app and post bug report over ftp

So I want to make a script that checks if you are connected to the internet and runs a sh file from the server, the on server sh file would be like this:
~/app.app/Contents/MacOS/app ;exit
(In here I would like something that saves the output from that to a text file and uploads it via ftp or something)
and if there is no connection to run another sh file locally. So far I have this:
set internetcheck_connection to "true"
set internetcheck to do shell script "ping www.iwczone.co.uk -c 2"
if internetcheck is equal to "ping: cannot resolve www.iwczone.co.uk: Unknown host" then
set internetcheck_connection to "false"
end if
if internetcheck_connection is equal to "true"
--run a sh file on a server (www.iwczone.co.uk/serverscript.sh)
end if
if internetcheck_connection is equal to "false"
do shell script "~/localscript.sh"
end if
Thanks in advance.

Please describe the problem in as much relevant detail as possible. The "etrecheck" fad hasn't made that step any less necessary. The better your description, the better the chance of a solution.
For example, if the computer is slow, which specific actions are slow? Is it slow all the time, or only sometimes? When did it start to be slow? Did you change anything just before it started? Have you seen any alerts or error messages? Have you done anything to try to fix it? Most importantly, do you have a current backup of all data? If the answer to the last question is "no," back up now. Ask if you need guidance. Do nothing else until you have a backup.

Similar Messages

  • Applescript to launch an application and wait till it exits

    I have written the applescript to launch an application and wait till it exits and but it is not working. Here is the code for that
    tell application "/Applications/Pages.app" to activate
    tell application "/Applications/Pages.app"
        repeat until it is not running
        end repeat
    end tell
    But when I tried to close the app, the script is still running. I think the reason is , even though I closed the window, that process is still running. Can you please help me to solve this problem?

    Trying to make this kind of thing work from the script editor is going to give you headaches. A better approach is to create a script application.  Copy the following code into the Script Editor, and then save it as an application with the "Stay open after run handler" checkbox checked. Then run the resulting script application directly.
    on run
      tell application "Pages" to activate
      -- add a longish delay to allow the application to start
      delay 5
    end run
    on idle
      if application "Pages" is not running then
      -- the application has quit, so go to the 'on quit' handler
      quit
      end if
    end idle
    on quit
      -- do whatever you want to do after the application has quit
      -- allow the app to quit itself
      continue quit
    end quit

  • Notification "Launch the app and go to the library" not working as expected

    Hello,
    we are sending notification "Launch the app and go to the library" - but it's not working as expected, it's still just launching app with last open folio.
    Whats wrong there? Do we need v30 app? We have V29, but this is not mentioned in documentation.
    Thanks
    Martin

    Ah.
    Ok, now it's clear.
    Anyway i would appreciate possibility to force viewer to switch to library view after new issue is detected, even without notification. Quite often requested feature - "there is new cover in Newsstand, but customer don't know how to download new publication easily".
    Martin

  • This is crazy I paid for the service. logged into the site. downloaded the launcher. attempted to launch the app. and...nothing?  what the deuce!

    this is crazy I paid for the service. logged into the site. downloaded the launcher. attempted to launch the app. and...nothing?
    what the deuce!

    We are sorry for the trouble that this has caused you. Can you please suggest if you did the migration from a previous version of MAC OS to Yosemite(10.10.1)? If yes, are you having trouble while Launching the Desktop Application? If yes, there are two steps available for us.
    1) First , please check the permission on /Library folder and see if you have full read & write access. If you don't, I would request you to have a conversation with Apple support.
    2) If the permissions are all fine on this folder, please check the same on ~/Library folder as well.
    If all is fine, i would request you to please reinstall the product and try again.

  • Trying to a Downloading 17  App, and although I am over 17, it won't let me download said app. I put money in on this app, so please help! What do I do?

    I was tying to download the Walking Dead app, and although I am over 17, it won't let me download said app. I put money in on this app, so please help! What do I do?

    Check your birthdate on your Apple account under the Password & Security section:
    https://appleid.apple.com
    Also check your Restrictions:
    Settings > General > Restrictions

  • Is there a way to launch an app and a set of actions on startup? (Like an automator-script for ipad)

    Hi all,
    Is there a way to have the ipad execute a series of tasks at startup? (like an automator-script)
    Thank you!

    Hi all,
    For all you who have been looking for a solution for the problem above, here it is :
    http://www.kioskproapp.com/
    The Kiosk Pro app allows you to run any html-scrip locally stored on the ipad!
    Which is great! Because not only does it allow for an infinite amount of possibilities next to the video-looping, it also keeps on working with one click after a reboot!
    The learning curve of usage is quite simple for the problem above, since they provide extensive information on the website and have great customer service.
    I am very very happy I found this app, and I really hope this post saves a lot of people the headaches I've suffered in the course of finding the solution.
    Enjoy!
    Alex

  • Extending the beta!  How to compose and post defect reports.

    There is no such thing as bug-free software, and LR is no exception to that. Even more, v1.0 releases, even those with long beta programs, can be more brittle than expected. We've already seen a few things that look like real defects which could be addressed in a future release. This is normal and expected, and now a team at Adobe will be dedicated to maintaining the LR release into the future.
    This posting is sort of asking the question "how can we help", with a fair bit of opinionated ranting of my own on the subject. Take my comments with a grain of salt, of course, but I'm not sure I say anything that hasn't already been said a million times before.
    Firstly, is there a place where bug reports should be posted that Adobe will see? Is there a document that describes how Adobe would prefer such reports to come in, perhaps with suggestions for supplemental material they'd like to see passed along with the defect report? Not only does this provide a place where Adobe can track raw bug reports, it can make perturbed users feel better, since they've been able to do something specific and active.
    Full disclosure: I am a software developer by trade, and I maintain shipped releases of code for a living. I know how I like to see problem reports and it drives me *crazy* when a we get a vague report formatted with no punctuation, in all lower-case, containing no specific details. Usually these come with bizarre screen-shots embedded into a Microsoft Word file. Not helpful.
    It drives me crazy because I know there is a bug in there somewhere, it just isn't necessarily the bug seen by the end-user or understood at first blush by the developer. I call this the "real bug", and it can be hard to suss out, sometimes.
    I assume that the following basics are /probably/ helpful when reporting defects against LR v1.0:
    - System details. At least the exact platform version and release. Possibly with a short run-down on CPU speed, amount of RAM. Mac users should probably be sure to clarify what CPU they are running.
    - Clear steps to reproduce, if possible. Describe the problem exactly as you see it, being sure to use the language and nomenclature that the application uses. Capitalize app-specific controls exactly as you see them in the app, to make it clear what you are doing.
    Try to reduce the problem to the barest set of operations.
    - For things like "hangs" and "crashes", I'm guessing that most supported platforms have a way of capturing these details. I cannot and will not speak for Adobe. But! if I was looking at a crash or hang, I'd want any and all crash logs (OS X) or Dr. Watson (Win32) that were related to the former and the sample output (OS X) or Process Explorer dump (Win32) for the latter.
    Details on how and where to post defect reports would be nice. Sounds like a FAQ item, at the least!
    Finally, here are some things that drive me crazier and I feel are *not* helpful:
    - Defect reports that intersperse observed behaviour with guesses about what the problem really is. No one knows better the potential places where symptoms could stem from except those people maintaining that codebase. I'm a smart guy and code for a living. I would never presume to know the precise inner-workings of Lightroom without access to the source and probably a run at it in a development environment.
    - Arguing for how terrible or disastrous a particular "bug" is, and how it needs to be addressed as critical for immediate correction. Everyone, including me, finds their own bugs most critical. The problem is that software maintenance requires putting everything into perspective, evaluating each defect on its own merit, as well as how risky a fix for the defect might be. This last part cannot be minimized. Changing code incurs risk. The idea is to carefully shepherd a new release into each new version while maintaining integrity and stability. No matter how bad a bug is, introducing a fix that simply

    I agree with how you think bugs should be reported. For now, I'd suggest posting them here, in detail. Some of us can relay them to the appropriate places, at least until we hear from Adobe personnel about an official location or method for the average end user.
    Lee Jay

  • The new Synaptics UltraNav: a few workarounds and minor bug report.

    I only wanted to file bug report, but then decided to also share what I did with my touchpad configuration to make it more convenient for me. I have Thinkpad T540p so this might work differently or not work at all for other notebooks.
     #1 Regedit
    Configure as much as you can using UltraNav tab in mouse settings dialog. (It is mostly self-explanatory.)
    If you didn't find some option, start regedit (using Win+R) and navigate to
    HKEY_CURRENT_USER\Software\Synaptics\SynTP\something
    This something is TouchPadSMB2c on T540p but you can find one you need by changing something in settings dialog and looking for changed values in regedit.
    All the touchpad configuration registry keys are there. You need to relogin to apply changes made there.
    But it might take a lot of trial and error to find out how these registry keys work.
    #2 3-finger tap
    As for me, I prefer tapping over clicking. While 3-finger press option is in settings dialog, 3-finger tap is not. But you can change it.
    Set whatever option you want for 3-finger press. Then go to regedit and copy value from 3FingerPressButtonAction key to 3FingerTapAction.
    #3 Button sizes and locations
    You can change button bounds with keys like LeftButtonZoneX where X is L for left, R for right, T for top and B for bottom bounds. 0xFFFFFFFF ultimately means "unlimited in that direction". For finding other values defaults might be helpful. Trackpoint buttons keys are SlaveSomeButtonZoneX.
    What for?
    First, trackpoint buttons can cover the whole trackpad only when trackpad itself is disabled. By changing button sizes manually you can overcome this restriction. It is useful because trackpad does not respond well to pressing corners and when buttons cover it all you can press it somewhere in the middle.
    Second, the same corner pressing problem exists for normal trackpad buttons so it is more convenient to use multi-finger taps or clicks. You can still hold trackpad pressed with one finger and use yet another finger to move mouse pointer.
    At the same time when you tap or press with multiple fingers and one of them touches one of the buttons you get that button pressed instead of whatever you intended. It frustrated me a lot when I got context menu popups while trying to close chrome tabs with middle mouse button click. The solution is to set top bounds for left and right buttons to zero.
    BUG (With the latest UltraNav drivers from support page)
    When the middle trackpoint button (used for scrolling) is enabled, it is always enabled, no matter if you are using trackpont or touchpad. Left and right trackpoint buttons are properly disabled when you don't need them.
    Even if you disable trackpoint completely without disabling that middle button first, it will remain enabled and will do nothing. (Blocking single- and multi-finger presses that touch it.)
    I could not find a way to fix that problem with regedit.

    Any problem can get official response and follow-up through a SR on Metalink/MOS (if you have a DB support contract), else you can post here and hope someone from development picks it up.
    Regards,
    K.

  • I downloaded ios 8 and  was bug reporting and it crashes when I log in

    I downloaded ios 8.0 on my iPod touch 5 and when I log in to the bug reporter it crashes

    Gustavoizzo wrote:
    I downloaded ios 8.0 on my iPod touch 5 and when I log in to the bug reporter it crashes
    If you're not a developer, aren't you glad that you beat the system?

  • BW upgrade - pre and post upgrade reports

    Hi All
    Quick question please.
    We plan to upgrade our BW ABAP system from NW 731 SPS7 to NW 740 SPS6.
    I read the ASU toolbox note 1000009 and can see that there is no file for our scenario i..e from 73X to 740 so note 1734333 is the way to go here when prompted for ASU toolbox run. However within the note 1734333, it states "This note requires that all pre-requisites for the BW-related system copy automation are met according to note 1707321". When i read 1707321 it talks about installation procedure for PCA which is part of LVM, a licensed software. We don't have this license.  Hence I am wondering if note 1707321 is applicable for us at all or is it that this note would bring about changes in the system and sets up a staging area upon which the Z report from the other note(1734333) builds and then creates task list for pre and post upgrade. I am certain that we will have to implement Z report from note 1734333 however the reference to note 1707321 has created some confusion.
    Also once we implement the Z report from 1734333, the note says, the report needs not be transferred but the objects generated need to be. Would the author here referring to reports - SAP_BW_BEFORE UPGRADE and SAP_BW_AFTER UPGRADE and having them recorded into a transport.  Any thoughts here please.  If the author is indeed referring to these reports only, how do we know this will show up in quality systems via STC01 as input options.
    Regards
    Kalyan

    I re-read the note again, It says, If task manager content notes(1707321) are not applied, we will not see reports for stopping RDA Daemons and Process chains i...e report RS_SYSTEM_SHUTDOWN. However we are on NW 731 SP7 so we already have this report. This means we can go ahead with implementing the Z report from 1734333 and forget about the other note.  Have I comprehended it correctly
    Regards
    Kalyan

  • Applescript, the new Photos app and Instagram

    I'm using applescript to add images to the new (Yosemite) Photos app. I'm using the following code:
    tell application "Photos"
         set ImageFile to POSIX file "~/photos/test.jpg"
         set DestinationAlbumName to "Instagram"
         if not (exists container named DestinationAlbumName) then
              make new album named DestinationAlbumName
         end if
      import ImageFile into container named DestinationAlbumName with skip check duplicates
    end tell
    On the face of it this all works just dandy; album is created if it needs to be, image comes in fine. However, heading on over to Instagram, iphone of iPad, when I look for the image I've just added it's not there, nor is the album. It's in the Photos app on the phone and tablet, just Instagram refuses to see it.
    If I add an album with an image in it by hand, Instagram sees it.
    Apple have precious little to offer by way of examples on this, does anyone have anything to offer?
    Thanks.

    If I delete then create the folder by hand back on the Macbook where I ran the script, I can then see it when I browse the Photo library back in Instagram.
    Try doing that and then running a script to get the properties of that folder.
    tell application "Photos"
      properties of container named "Instagram"
    end tell
    Look at the result. Then delete that folder, run your import script and create the folder, then get the properties again. Compare the two property lists. Is there any difference?

  • Feedback App Not Working and Some Bug Reports

    Tecnical Preview Build 9840 =Upgrade to==>9860==>9879
    >Hi. when i try to open this app, its opening black and then freeze. I was going to report a bug with this app but its not working. So i ill use here. Here visual bug :

    Thank you very much for the quick reply. It is indeed working again (although I still never see any feedback from other users that I could upvote)

  • My iPad keeps quitting the launch on apps and email

    What can I do to stop iPad mini quitting on launching apps , email etc. Any ideas?

    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...

  • PlayBook froze upon launching Music app and won't start again

    Hi,
    My PlayBook (latest OS update) just stopped to respond, I was using Browser, and when I launched the Music app, the whole system stopped to respond, it stayed on the blue launching screen of the Music app, I pushed the power button and the screen went black, now it just won't start again, I tried to plug it to charge and to usb, all to no avail...
    Long pressing the power button had no effect...
    So I just don't know what to do, did this happened to anyody? Is there a way to reset the tablet?
    Thanks, any suggestions will be welcome!
    Julien
    Web: smugrik.org Follow: @Smugrik
    PlayBook apps:
    OSCream
    kiPass
    Solved!
    Go to Solution.

    Well, my PlayBook finally rebooted and responds normally again...
    I'm still wondering about the reason for such a crash, it is the first time such failure happens on my PB...
    Julien
    Web: smugrik.org Follow: @Smugrik
    PlayBook apps:
    OSCream
    kiPass

  • Height and width bug takes over browser

    This only occurs in FF. Text that says "Height=12pxWidth=12px" repeats all over my browser window. It is not just those dimensions but dimensions of any image that gets repeated over and over again. Here is a screen shot:
    https://docs.google.com/file/d/0B6Gj-Q8E-R3EVlp5b042YUFmMFE/edit?usp=sharing
    This happens from time to time and then goes away. It affects other sites as well but not consistently. Any idea why this happens?
    Doug

    On the Web Developer Toolbar, check whether you have this turned on:
    Images > Display Image Dimensions
    If that isn't it, you might need to investigate other features of your extensions.

Maybe you are looking for

  • Error In The Installaion SAP NW PI 7.1

    Hi All, We are installing SAP NW PI7.1 with EHP1 on RHEL5 and MAXDB. It's getting error at the last but one phse (installation of software units). I am pasting the java.log   : [1106630976] 13:30:14 ***ERROR (os_linux.cpp:2916): os::create_event: sem

  • FlatFile to produce multiple xml Files

    Hi - my requirement is I need to convert the below FF to xml format producing unique ID record and multiple Question and Answer Record under it. Output should be of this format :For 5 different IDs, 5 seperate xml's should be produced <ID> 000000001

  • My Cable Company says my Ethernet Card is Dead

    Hi, after a lightning storm my High Speed Internet connection stopped working. The Cable company says my Ethernet Card is dead. But my understanding of my G4 Power Mac architecture is that it has built in 10BaseT support and there is no separate card

  • Material check in alternate plant

    Hi friend, In MTO scenarion I have same (component) material in two different plant within the same client. During MRP run dependent requirement should be checked in the alternate plant's and if material is available reservation should be generated.

  • Javac exception in thread "main"

    Problem javac exception in thread "main" NoClassDefFoundError: com\sun\tools\javac\ [off screen] etc etc Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.util.Options etc etc Background 2006 java worked fine (with JEdit) on intro SUN