How can I make an applescript quit it's self

Hi, I have little knowledge with applescript. I was wondering, since my applescript app just doesn't respond 2-3 seconds after launch, How can I try to make it force quit it's self? I've tried (and failed) with the following (surprise, surprise):
delay 2
tell application "(MyAppName)" to quit
end tell                          
- No response
delay 2
tell application "(MyAppName)" to activate
tell "System Events"
     key down command
     keystroke "."
     key up command
end tell
- No response, AGAIN
(As you know, command+period tells a script to quit)

Usually something like
    tell me to quit
or
    error number -128
should do it, but if your application is hanging there isn't much you can do (in the same script), since it isn't running.  You may be able to set up an application timeout if it is another application that isn't responding, but more information about what specifically is not responding would help.

Similar Messages

  • How can I make this AppleScript available as a control click menu?

    This code was previously created in another question from 2009 (https://discussions.apple.com/thread/1881786?start=15&tstart=0), but the last person to comment on it was never given an answer. I wanted to see if this following AppleScript could be used as a control-click menu, so when I click on a folder, I can choose to run this script so set an icon as the folder image, instead of having to select both the image and the location. In other words, can I have a one-click method to set, say "cover.jpg" or "1.jpg" as the folder icon? Any help is appreciated.
    Here is the code that works through the use of selecting the file and the folder:
    --CODE (for AppleScript Studio script)
    set srcpath to POSIX path of (choose file with prompt "Choose source image file.")
    set dstpath to POSIX path of (choose folder with prompt "Choose target folder.")
    --set dstpath to dstpath's text 1 thru -2 -- remove last slash if necessary.
    setIcon(srcpath, dstpath)
    on setIcon(srcpath, dstpath)
    set nsimg to load image srcpath
    set nswks to call method "sharedWorkspace" of class "NSWorkspace"
    set r to call method "setIcon:forFile:options:" of nswks with parameters {nsimg, dstpath, 0}
    delete nsimg
    return r
    end setIcon
    --END OF CODE

    Jules,
    Depending on the shape, and upon the appearance (varying width and/or knotting or whatever), it may be anything from a Rectangular/Polar Grid (bundled with the Line Segment Tool) to something intricate and difficult.

  • How can I make an applescript ping a website?

    I have an applescript that I'm distibuting to very many people. Not very many people are updating to the newest versions, which I need them to. I want to remind them or notify them that the new update is out. What I want to do is have my script "ping" a website, so that if its online, it'll give people a message saying that a new update is out. It's important that it only gives a user this message once. Is this possible? And if so, how might I do it?

    Pinging is the wrong way to go about this. First if a mailing list is a nightmare how is pinging the same number of system any less of a nightmare.
    Second how do you plan on sending the message, ping has nothing to do with message sending and pinging a machine will tell you nothing about if any users are currently using the machine.
    Finally a large number of users have connections that will not allow you to ping them for varied reasons.
    No legitimate software developer would do update reminders in this manner. If a user gets your software and doesn;t want to receive emails from you then they most likely will not want to have you pinging their system.
    Sorry but you need to find another way to do this.
    regards

  • MacBook Pro (OS X 10.9.1) calendar continues to "connect to server" and will not allow shut down or restart. Force quit worked. How can I make this calendar "behave"?

    MacBook Pro (OS X 10.9.1) calendar continues to "connect to server" and will not allow shut down or restart. Force quit worked. How can I make this calendar usable? The problem began after I updated to Maverick.

    babowa, it seems like it is using Fuse & NTFS, so I don't think it's the classic WD + 10.9 mess, but extra WD tools & drivers can still break things MtTran.
    MrTran, if you must use unsupported disk formats on your Mac you must also consider actually paying the developers that made the trial software.
    It's probably a good idea to follow the developers removal instructions, reboot & then install one tool at a time.
    MacFuse, FuseOSX, NTFS-3G are all likley to confict if you run older versions so you need to be sure you are using the latest version. I can't remeber which one depends on the other, so you will need to read the manuals.
    When the disk is readable copy the data to another disk. You could probably do this from a Linux distro or Windows if OS X won't do it.
    If you insist on only using the trial versions you will need to reinstall Mac OS, copy data off this disk & reformat it.
    Is there any good reason for not using the Mac HFS extended format?

  • How can i make the text go vertically in numbers

    How can I make the text vertical in numbers?  I have merged the cells and cannot find an option for making it go vertical as opposed to horizontal.

    I already gave two tools to fit this kind of needs.
    tip #1 :
    --{code}
    --[SCRIPT write_vertically]
    Enregistrer le script en tant que Script : write_vertically.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Utilisateurs:<votreCompte>:Bibliothèque:Scripts:Applications :Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Saisir dans une cellule le mot à écrire verticalement puis le sélectionner.
    ATTENTION, il ne faut pas sélectionner la cellule mais le mot qui doit apparaitre surligné.
    Aller au menu Scripts , choisir Numbers puis choisir “write_vertically”
    Le script colle dans la cellule le mot apès avoir inséré un return entre tous les caractères.
    Pour mon usage personnel j'associe un raccourci à ce script grace à FastScripts.
    --=====
    L’aide du Finder explique:
    L’Utilitaire AppleScript permet d’activer le Menu des scripts :
    Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case “Afficher le menu des scripts dans la barre de menus”.
    Sous 10.6.x,
    aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript
    puis cocher la case “Afficher le menu des scripts dans la barre des menus”.
    --=====
    Save the script as a Script: write_vertically.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    In a cell, type a word to write vertically then select it.
    CAUTION, don’t select the cell but the word which must be highlighted.
    Go to the Scripts Menu, choose Numbers, then choose “write_vertically”
    The script insert in the cell the word after inserting a return between every characters.
    For my own use, I link a shortcut to the script thank to FastScripts.
    --=====
    The Finder’s Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the “Show Script Menu in menu bar” checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2011/12/17
    2012/01/01 no longer use a local variable, use result
    --=====
    on run
    Clear the clipboard *)
      set the clipboard to ""
    Copy the selection in the clipboard *)
              my raccourci("Numbers", "c", "c")
    Loop waiting that the clipboard is really filled *)
              repeat
                        try
                                  if (the clipboard as text) is not "" then exit repeat
                        on error
                        end try
              end repeat
    Extract the clipboard's content *)
      the clipboard as text
    Insert return between every characters *)
              my recolle(every character of result, return)
    Fill the clipboard with the edited string *)
      set the clipboard to result
    Paste in the cell *)
              my raccourci("Numbers", "v", "cas")
    end run
    --=====
    on recolle(l, d)
              local oTIDs, t
              set oTIDs to AppleScript's text item delimiters
              set AppleScript's text item delimiters to d
              set t to l as text
              set AppleScript's text item delimiters to oTIDs
              return t
    end recolle
    --=====
    on activateGUIscripting()
      (* to be sure than GUI scripting will be active *)
              tell application "System Events"
                        if not (UI elements enabled) then set (UI elements enabled) to true
              end tell
    end activateGUIscripting
    --=====
    ==== Uses GUIscripting ====
    This handler may be used to 'type' text, invisible characters if the third parameter is an empty string.
    It may be used to 'type' keyboard raccourcis if the third parameter describe the required modifier keys.
    I changed its name « shortcut » to « raccourci » to get rid of a name conflict in Smile.
    on raccourci(a, t, d)
              local k
              tell application a to activate
              tell application "System Events" to tell application process a
                        set frontmost to true
                        try
                                  t * 1
                                  if d is "" then
      key code t
                                  else if d is "c" then
      key code t using {command down}
                                  else if d is "a" then
      key code t using {option down}
                                  else if d is "k" then
      key code t using {control down}
                                  else if d is "s" then
      key code t using {shift down}
                                  else if d is in {"ac", "ca"} then
      key code t using {command down, option down}
                                  else if d is in {"as", "sa"} then
      key code t using {shift down, option down}
                                  else if d is in {"sc", "cs"} then
      key code t using {command down, shift down}
                                  else if d is in {"kc", "ck"} then
      key code t using {command down, control down}
                                  else if d is in {"ks", "sk"} then
      key code t using {shift down, control down}
                                  else if (d contains "c") and (d contains "s") and d contains "k" then
      key code t using {command down, shift down, control down}
                                  else if (d contains "c") and (d contains "s") and d contains "a" then
      key code t using {command down, shift down, option down}
                                  end if
                        on error
                                  repeat with k in t
                                            if d is "" then
      keystroke (k as text)
                                            else if d is "c" then
      keystroke (k as text) using {command down}
                                            else if d is "a" then
      keystroke k using {option down}
                                            else if d is "k" then
      keystroke (k as text) using {control down}
                                            else if d is "s" then
      keystroke k using {shift down}
                                            else if d is in {"ac", "ca"} then
      keystroke (k as text) using {command down, option down}
                                            else if d is in {"as", "sa"} then
      keystroke (k as text) using {shift down, option down}
                                            else if d is in {"sc", "cs"} then
      keystroke (k as text) using {command down, shift down}
                                            else if d is in {"kc", "ck"} then
      keystroke (k as text) using {command down, control down}
                                            else if d is in {"ks", "sk"} then
      keystroke (k as text) using {shift down, control down}
                                            else if (d contains "c") and (d contains "s") and d contains "k" then
      keystroke (k as text) using {command down, shift down, control down}
                                            else if (d contains "c") and (d contains "s") and d contains "a" then
      keystroke (k as text) using {command down, shift down, option down}
                                            end if
                                  end repeat
                        end try
              end tell
    end raccourci
    --=====
    --[/SCRIPT]
    --{code}
    tip #2 :
    --{code}
    --[SCRIPT rotate_cell_contents]
    Enregistrer le script en tant que Script : rotate_cell_contents.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Sélectionner une cellule dont le texte doit être tourné de 90 degrés.
    Aller au menu Scripts , choisir Numbers puis choisir “rotate_cell_contents”
    --=====
    L’aide du Finder explique:
    L’Utilitaire AppleScript permet d’activer le Menu des scripts :
    Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case “Afficher le menu des scripts dans la barre de menus”.
    Sous 10.6.x,
    aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript
    puis cocher la case “Afficher le menu des scripts dans la barre des menus”.
    --=====
    Save the script as a Script: rotate_cell_contents.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Select a cell whose contents must be rotated for 90 degrees.
    Go to the Scripts Menu, choose Numbers, then choose “rotate_cell_contents”
    --=====
    The Finder’s Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the “Show Script Menu in menu bar” checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2011/06/23
    2011/06/26 -- No longer use an auxiliary text box. Now keep the text attributes.
    2012/01/31 -- edited for Lion
    --=====
    on run
              local dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2
              local le_texte, la_largeur, la_hauteur, myNewDoc
              my activateGUIscripting()
    Extract properties of the source/target cell *)
              set {dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
              tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
                        set selection range to range (name of column colNum1 & name of row rowNum1)
              end tell
    Cut*)
              my raccourci("Numbers", "x", "c")
    Trigger Preview *)
              tell application "System Events"
                        if "Preview" is not in (name of every application process) then launch application "Preview"
              end tell
      delay 0.2 -- required
    New document from the clipboard *)
              my raccourci("Preview", "n", "c")
    Rotate to left *)
              my raccourci("Preview", "l", "c")
    Copy *)
              my raccourci("Preview", "c", "c")
    Quit *)
              my raccourci("Preview", "q", "c")
              (system attribute "sys2") < 7
              if result then
    Click the [Don't Save] button in the warning sheet *)
                        tell application "Preview" to activate
                        tell application "System Events" to tell application process "Preview" to tell window 1
                                  name of buttons
                                  repeat 50 times
                                            delay 0.1
                                            if exists sheet 1 then exit repeat
                                  end repeat
                                  tell sheet 1 to click button 2
                        end tell
              end if
    Back to Numbers *)
              tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
      -- just reset the focus on the table
              end tell
    Paste in the cell *)
              my raccourci("Numbers", "v", "c")
    end run
    --=====
    set { dName, sName, tName,  rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    on get_SelParams()
              local d_name, s_name, t_name, row_num1, col_num1, row_num2, col_num2
              tell application "Numbers" to tell document 1
                        set d_name to its name
                        set s_name to ""
                        repeat with i from 1 to the count of sheets
                                  tell sheet i to set maybe to the count of (tables whose selection range is not missing value)
                                  if maybe is not 0 then
                                            set s_name to name of sheet i
                                            exit repeat
                                  end if -- maybe is not 0
                        end repeat
                        if s_name is "" then
                                  if my parleAnglais() then
                                            error "No sheet has a selected table embedding at least one selected cell !"
                                  else
                                            error "Aucune feuille ne contient une table ayant au moins une cellule sélectionnée !"
                                  end if

  • How can I make email messages stay on my computer?

    Up till now I had a .me mail account and I used POP. Now I've moved to iCloud, and apparently am forced to use IMAP. 
    I have an iMac on which I want to keep all my mail, deal with it, archive it, etcetera. And I have an iPad on which I occasionally check my mail when away from my desk, and on which I don't want to keep any mail. Up till now I used to delete all mail on my iPad as soon as I was sure it was stored on my iMac. But apparently that doesn't work anymore. I emptied the IN box on my iPad, and now the IN box on my iMac is empty too, as, I just noticed to my horror, is the SENT box there. There used to be quite a number of mails I absolutely needed to keep, and some I still have to answer …
    How can I make sure that the mail I want to be on my iMac really gets there and stays there for as long as I choose to keep it (other than not throwing away any mail anywhere, which will eventually fill my Cloud)? Will it be enough to move all mail in the IN and SENT box to a corresponding box in the "On My Mac" section?
    Any advise would be more than wellcome.
    Best Regards
    Bart

    Bart Voorzanger1 wrote:
    Up till now I had a .me mail account and I used POP. Now I've moved to iCloud, and apparently am forced to use IMAP. 
    snip…
    How can I make sure that the mail I want to be on my iMac really gets there and stays there for as long as I choose to keep it (other than not throwing away any mail anywhere, which will eventually fill my Cloud)? Will it be enough to move all mail in the IN and SENT box to a corresponding box in the "On My Mac" section?
    You have already worked it out, make local folders (doesn't matter what you call them) and put mail that you wish to keep, but not keep on the server in the local folders, as long as the folders are 'On your Mac' they  will not appear on your other devices.
    As a bonus when you change your mind and want a piece of mail 'globally' accessible just move it from the local folder back to the iCloud account folder.

  • How can you make one button preform different actions in Xcode?

    How can you make one button "preform a click" and "orderfront"? Is that possible? Because what I am doing is making a welcome window to my application for Mac OS X 10.6, and I have two buttons in that window, one says "Connect" which connects a a WebView to a url and the other button opens up the main window. So how can I a make a button do multiple things at once??

    Ah - If you are just using bindings between various objects from Interface Builder, you can reduce your application code a bit (sometimes quite a bit), but there is only so far you can go. Typically variables and routines are defined in your application that Interface Builder hooks into, so that your application code (usually Objective-C, but can be others) can use these variables and routines to determine what is happening in the user interface.
    I'm not sure how up-to-date the project code is (or what programming code you are familiar with), but you can take a look at Apple's Cocoa Application Tutorial to see what is (usually) involved in creating an application.

  • WHY does Muse upload every page when I only change one thing. And how can I make Muse faster.

    I have a bunch of sites I do for people that are similar. Here's one: www.mattfelis.com.
    When I make a single change on one page, just a text change (the last time I deleted a freakin' period) and tell Muse to Upload it to FTP host, it uploads every single page in the site. Every one. And since there are 55 pages, that means it takes about 20 minutes with a darned fast upload speed (20MBPS upload). It isn't the uploading that kills me, it's the Exporting of pages. All of them. All 55. Why is it doing this?
    And while we are talking about speed, most of the time in working with these files I see what I call the beach ball of death on a constant basis. Just opening a page from Plan Mode or going back to Plan Mode from a page can take 20 seconds. I know, I've counted. Copy and paste between pages can take longer. I am running a 3 year old Mac Pro with 12 gigs of RAM and tons of disk space. How can I make Muse work better. More RAM? To speed it up I find that I have to quit about every 30 minutes and restart Muse to get it back to any semblance of speed. Smaller sites obviously don't do this but big ones (I have a lot of those) do.
    Any help would be greatly appreciated.

    There's a bug we've become aware of and fixed for the next major release where use of one or more objects on a master page that have different states that require output as separate background images can result in that master page and all pages where that master page is used always being considered out-of-date and in need of re-export and upload.
    Unfortunately, there's no workaround short of removing such items from your master page(s).
    If you're not already part of the Private Beta Program and are interested in working with the next version of Muse prior to its official release, the Private Beta Program is open to all subscribers who can accept the terms of the Non-disclosure Agreement. You can join via the Help menu within Muse. The Beta Program for the next major release will be started soon.

  • How can I make iTunes sort on the first word by default, even though that word is "The" or "A"?

    How can I make iTunes sort on the first word by default, even though that word is "The" or "A"?
    I myself think that (for instance) "A tribe called Quest" should be sorted under "A", not "T".
    Now I can edit the sort options manually per track and/or per selection, but I would really like to just kill this "iTunes-knows-how-you-should-sort"-feature in iTunes.
    Anyone any suggestion on how to do that?
    Thanks

    Here is a modified version of one of Doug's Scripts. My modification was to add Sort Name to the list of tags that could be changed. I tried it on a single track and it worked. I recommend backing up your library first. Select the tracks you want to change (or all tracks) and run the script from the Applescript Editor.  If it works as intended, save it so you can apply it to newly imported tracks.  And, yes, I know this isn't the exact answer to your question, you want to change a preference setting in iTunes (if there is such a setting).
    Original script can be forund at http://dougscripts.com/itunes/scripts/ss.php?sp=thistagthattag
    Modified script is below. Start up Applescript Editor, paste it into a new window.  Start up iTunes and select the tracks to modify.  Click Run in the Applescript Editor.  Follow the instructions.
    (* Put This In That
    v2.0 april 22 2008
    - runs as universal binary
    - adds "Show" tag
    - consolidated code
    - saved as script bundle
    v1.7 October 3, 2006
    - adds "Album Artist" as option
    v1.6 October 28, 2004
    - works around iTunes 4.7 selection bug
    v1.5 ('04/1)-- adds "grouping" tag
    Get more free AppleScripts and info on writing your own
    at Doug's AppleScripts for iTunes
    http://dougscripts.com/itunes/
    This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
    Get a copy of the GNU General Public License by writing to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    or visit http://www.gnu.org/copyleft/gpl.html
    -- CONSTANTS
    property allOptions : {"Song Name", "Artist", "Album", "Album Artist", "Composer", "Genre", "Comments", "Show", "Grouping", "Sort Name"}
    property my_title : "Put This In That"
    global thisTag, thatTag, theNewTags, theOriginalTags, yn
    tell application "iTunes"
              if selection is not {} then -- if tracks are selected...
                        set sel to selection
                        set numTracks to (length of sel)
                        set s to "s"
                        if numTracks is 1 then set s to ""
                        display dialog "The data from one tag REPLACES the data in another tag in all the selected tracks, with option to delete data in first tag." & return & return & (numTracks & " track" & s & " selected.") buttons {"Cancel", "Continue"} default button 2 with title my_title giving up after 30
                        if gave up of result is true then return
                        my choose_this_tag()
                        my choose_that_tag()
                        set yn to (button returned of (display dialog "Delete data in " & thisTag & " afterwards?" buttons {"Yes", "No"} default button 2 with title my_title giving up after 45) is "Yes")
                        set oldfi to fixed indexing
                        set fixed indexing to true
                        repeat with t from 1 to numTracks
                                  tell contents of item t of sel
                                            set theOriginalTags to {get name, get artist, get album, get album artist, get composer, get genre, get comment, get show, get grouping, get sort name}
                                            set theNewTags to theOriginalTags
                                            my do_put()
                                            set {name, artist, album, album artist, composer, genre, comment, show, grouping, sort name} to theNewTags
                                  end tell
                        end repeat
                        set fixed indexing to oldfi
              else
      display dialog "No tracks have been selected." buttons {"Cancel"} default button 1 with icon 0 giving up after 30
              end if -- no selection
    end tell
    to choose_this_tag()
              tell application "iTunes"
                        set n to (choose from list allOptions with prompt ("Select a tag to get data from:") with title my_title)
                        if n is false then error number -128
                        set thisTag to (n as text)
              end tell
    end choose_this_tag
    to choose_that_tag()
              set o to {}
              repeat with t in allOptions
                        if (t as text) is not thisTag then copy t to end of o
              end repeat
              tell application "iTunes"
                        set n to choose from list o with prompt ("Use data from the " & thisTag & " tag to REPLACE data in...") with title my_title
                        if n is false then error number -128
                        set thatTag to n as text
              end tell
    end choose_that_tag
    to do_put()
              try
                        repeat with i from 1 to (length of allOptions)
                                  if thisTag is (item i of allOptions) then
                                            set thisTag_sto to (item i of theOriginalTags)
                                            exit repeat
                                  end if
                        end repeat
                        repeat with i from 1 to (length of allOptions)
                                  if thatTag is (item i of allOptions) then
                                            set (item i of theNewTags) to thisTag_sto
                                            exit repeat
                                  end if
                        end repeat
                        if yn then
                                  repeat with i from 1 to (length of allOptions)
                                            if thisTag is (item i of allOptions) then
                                                      set (item i of theNewTags) to ""
                                                      exit repeat
                                            end if
                                  end repeat
                        end if
              end try
    end do_put

  • How can I make a pull down menu in I web

    how can I make a pull down menu in I web?

    You can't do this directly in iWeb itself and it is quite complex - you need to use third party software and it is a matter of pasting code into the html snippet in iWeb and then uploading certain things to your host/server and then connecting them.  It can get quite fiddly if you don't really know what you are doing and it only takes you to upload the wrong thing and get some code wrong and your menu will not show up.
    Why not ditch iWeb in favour of newer software - try EverWeb at http://www.everwebapp.com and in EverWeb you can create drop down menus from within the app and it is very easy to do.
    I would change now as iWeb has not been supported by Apple or sold for the last 2 years, so now might be a good time to look elsewhere and ditch iWeb for good.
    I already have and purchased EverWeb and re-built one of my sites using this app and have moved my other site to Drupal so that I can do more with it and make it a members site - this can be done more easily if you use a Content Management System like Drupal.

  • How can I make a window show up in every desktop?

    How can I make a window show up in every desktop so when a user switches views it's still on their screen, using Xcode, Applescript-ObjC?

    hi, try this:
    public static void centerWindow(Window win){
    Dimension screenSizeWithSpeedBar = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension screenSize = new Dimension(screenSizeWithSpeedBar.width,screenSizeWithSpeedBar.height-25);
    Dimension frameSize = win.getSize();
    if (frameSize.height > screenSize.height)
    frameSize.height = screenSize.height;
    if (frameSize.width > screenSize.width)
    frameSize.width = screenSize.width;
    win.setSize(frameSize);
    win.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
    It works with following arguments: JWindow, JFrame and JDialog

  • How can I make it so that when Safari opens it takes me to the homepage?

    Say I am on youtube and I quit safari, when I reopen safari later, it goes to the page last open, in this case, youtube. How can I make it so that when Safari opens it always takes me to the homepage?

    Click on the red button (top left) to close the window before quitting.

  • How can I make double clicking the space bar to make a period less sensitive

    Hi! When I double click the space bar, it makes a period, which I love. What drives me crazy is that it thinks I'm double clicking the space bar quite frequently, so it'll insert a period in the middle of the sentence. How can I make my space bar less sensitive? I know that I can turn off the period shortcut, but I would prefer to leave it on, just with a less sensitive keyboard setting. Help!

    It sounds like the space key is getting worn out. You may need to get the device exchanged under warranty if it's less than a year old.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • How can I make my application as webservice

    Hi All,
    I'd like to know ,how can I make my application as webservice which has built on strut framework.
    with regards
    Babu H

    I'm not quite sure what you mean by application, but you can not turn whole applications to webservices. What you can do easily is to turn your services, e.g. the public methods in your stateless session bean layer as web services. There is different ways to do this, but you might want to check out Axis (http://ws.apache.org/axis ), which is a OS tool for creating WS call stacks over existing objects.

  • How can I make a button that on press the object appears and on second press the object to disappear

    Hello,
    I'm quite new to flash programing, and I don't know how can I make a button that will make the object appear and disappear.Till now I have this code for the appear:
    on (press)
        _root.top1.gotoAndStop(2);
        _root.topp.gotoAndStop(2);
        _root.mm1.gotoAndStop(2);
              _root.m1.gotoAndStop(2);
    but from here I'm stuck.
    Thank you for your help

    What you can do is use the _visible property of the object to make it appear and disappear, or more correctly, use the opoosite of the _visible property.  You should not put code "on" objects, keep it in the timeline.
    If "object" is the instance name of the object you want to toggle, then in the timeline code you can use...
    object._visible = false;  // start with the object being invisible
    yourButtonName.onRelease = function(){
        object._visible = !object._visible;
    That one line in the function sets the object's _visible property to be the opposite of what it currently is.

Maybe you are looking for

  • Need advice on backup hardware

    I am using an Xserve for a disk-to-disk backup, and as our data has expanded, we need more backup room. The Xserve is connected to a RAID, and we need to back up about 1.5 TB from that RAID once a week for offsite storage. Each night, the backups go

  • Cannot select and move in mountain lion

    I am running 10.8.4 on an early 2009 15'' MBP, and I have been having issues where I cannot select an object (file or folder) and move it. This is affecting my other programs, for example, i find that I cannot select and move cursor in Maya. Not sure

  • How to output sound from MacBook Pro to stereo receiver/amplifier?

    Does anyone here know what I would need to buy to send audio from my MacBook Pro to an external integrated stereo amplifier? I'm sure there's something. I'd like best quality so if you know of a USB solution please let me know.

  • Any Recommendations for an HDTV Compatible with the Mini

    I'm looking to get a 40" HDTV and have been trying to find information on which ones work best with a late 2009 mini. Also, is it necessary to use the mini displayport connection, or can the mini dvi connection be used?

  • Overlapping Audio Captivate 5 [Mac]

    Hi, all. I've got a slide with audio on the main slide, then added audio to rollover captions. When I preview, the audios all play at once. I've done this before 100s of times in v4 with no problem. But no matter what I do, I still get 4 audios playi