OS X Technologies :: Pinging IP Address Via Apple Script
Mar 27, 2012
this is my second script im trying to create. What i would like this script to do is have the user input and ip and ping that address my problem lies in getting ip address from the dialouge box into the "do shell script", this is my script so far set Ip_address to ""set Dialog_1 to display dialog "Enter Ip Address" default answer "" with title "Ping"set the Ip_adress to the text returned of Dialog_1set ping to (do shell script "ping -c 2 & Ip_address & ")if ping contains "64 bytes" then display dialog "Connection Secessful"
And also how do i make a variable so if it comes back i unresponsive i can have a dialog box say "Connection Unsecessful" (I know i can do this maunally but i would like to create a script so its easier for the end user)
Info:
MacBook, Mac OS X (10.6.8)
View 10 Replies
ADVERTISEMENT
Feb 4, 2012
I am trying to make a script that allows me to call a number in Address Book in my Avaya Softphone app. Everything works great except that all numbers need to have "9-1" or "91" before the phone number. This is needed to access the outside line and all calling requires the country code. how to add the 91 to the script so that all phone numbers in the script have this added.
[code]....
Info:
15" Macbook Pro 2.4 Ghz, Mac OS X (10.6.2)
View 3 Replies
View Related
Nov 21, 2010
Using a G4 IBOOK with OS 10.5.8. Recently converted IBOOK from just my wifes computer to both of us so it is now dual usuage with both of us signing in to our respective files/e-mail, etc. My side has a problem never experienced before. My apple mail system address book has all the names the dock address book does but is missing almost 2/3rd of the actual e-mail addressess. I have tried to redo the dock address book in hopes it would change the "internal" mail book, but to no avail. It id difficult to add a recipient to an outgoing e-mail via the dock address instead of the apple mail address book.
View 3 Replies
View Related
Mar 12, 2012
How do I access address-book in Mail 5.1?
Info:
Imac Intel
View 5 Replies
View Related
Nov 5, 2010
My MacBook Pro 15inch makes a hollow sounding click/ping noise when I move along the track pad. It's NOT the motion sensor, that noise is more defined and pinpointed. This noise is random, sometimes occurs non-stop for an hour or two at a time every time I move the mouse, but usually occurs at random. Sometimes it also occurs when i have my computer on my lap or tilted and move it from side to side. But again, it is not the normal motion sensor noise.
I'm on my third MacBook Pro in less than 30 days. My first one corrupted all my files and my second one pinged like this one. I just need confirmation that this is actually OK and I will get a good MacBook and the money will be well spent. I think most of my issues stem from the fact that I'm new to Mac and just don't know what is normal.
View 4 Replies
View Related
May 10, 2010
I noticed this problem beginning (give or take) 3weeks ago with my iMac. I'm currently running Leopard with the latest update. It seems I have an erratic blinking cursor, no matter if placed in a URL field, a search field of any sort, or anywhere just trying to type something, the cursor seems to "take off" in this sort of perpetual blinking that I can't make stop. When the problem first began, after 2 restarts, my machine returned to normal. However, yesterday afternoon, the same problem re-appeared.
When trying to close applications, the problem causes a repeated "pinging" sound. I've tried 3 restarts without any luck. I generally leave my machine on all the time with sleep mode activated. I currently use the wireless aluminum BT keyboard and magic mouse. The magic mouse has the latest drivers that fixed my wireless keyboard from dying after every 3 or so days. Nonetheless, I'm baffled, frustrated, and confused on this one. I even ran disk utility this morning to see if something was wrong with the hard disk. The utility finished saying the hard disk appears to be ok.
View 4 Replies
View Related
Mar 19, 2012
I am currently trying to generate a report using the headers from Apple Mail. The script I have works, but I would like to be able to pull out messages that are sent to a specific recipient ( a certain distribution group in this case...).
[Code]...
View 1 Replies
View Related
May 14, 2012
I manage a small deployment of different macintosh products and I currently have to run 5 different images so that the background images look right on all the various resolutions. I have been working on a piece of applescript to prompt the user on first startup to select their hardware type to apply the proper background image but I am running into a few issues. Firstly the method I am using limits me to three options and I cant seem to find any documentation on how the list function works..Second, I keep getting errors saying the files can't be found. [code]
View 2 Replies
View Related
Jun 22, 2012
I am just starting out with applescript and could do with a pointer please. I have written a script which saves two pdf files from an active Illustrator document in the source folder of that document. The issue I am have now is that I cannot get the two files to combine into a single PDF file. The whole script is quite long and is works apart from the combine PDF part?
tell application "Finder" try open (every document file of container of file_path whose name contains ".pdf") on error display dialog "no PDF file located"
[code]....
Both PDF documents open and are set as the variables docRefA and docRefb, but the acrobat command 'bring to front' and 'insert page' do not seem to be working. I get an error come up in an illustrator dialog box saying "Adobe Acrobat Pro got an error: document "84056_R1.pdf" doesn't understand the bring to front message".
Info:
Mac OS X (10.6.8)
View 14 Replies
View Related
Mar 1, 2012
HiThe usual tale of an Applescript beginner getting lost but, I want to be able to search for a selected membership number within a Numbers spreadsheet, extract that member’s email address and send a message. I have managed to create a script that creates and sends the email but after several attempts I cannot work out how to start searching cells for a particular value and how to extract data from cells in the selected row.
Info:
iMac, Mac OS X (10.7.1)
View 3 Replies
View Related
Mar 21, 2012
How can I follow my link or whcih link to varify my apple id?
Info:iPhone 3GS, iOS 5.0.1
View 1 Replies
View Related
Mar 23, 2012
I'm just now upgrading from 10.6 to 10.7, and I'm having trouble with a script that I wrote that worked fine under 10.6. In part, it executes the following command: osascript -e "tell application "Finder" to set destop picture to POSIX file "<path>"" to change the desktop background image to one of two different files based on other conditions. In 10.7, this command completes with no error code, but it only changes the background of one of my four desktops. Is there a way to programmatically change the background image of all of my desktops simultaneously? Failing that, is there a way to a) find out how many desktops I have and b) loop through them, setting each of their backgrounds in turn? osascript -e "tell application "System Events" to set picture of every desktop to "<path>"" Unfortunately, that also changes only the current desktop's picture. The larger script is in Perl, so I'd prefer a technology that works well with that language, but if I have to change to a different scripting language, that's not the end of the world.
View 6 Replies
View Related
Apr 26, 2012
I'm using the following script below using an external libarary to query mysql database on external server. works. gives results. How do I save them to do something with the. when I run it, the results of the call to the library show up in the results window. that makes sense. ie {rows:1, cols:1, record_data:{{"85016 "}}} I want to assign the results to a variable to use it later, particularly the 85016. I try "set testVariable to tell db_link to do_select(theDBCommand)" no good. Not sure how to do this.Script follows: -- links to the mysql tools -[URL]set library_path to "js_aux_scripts:mysql_objects.scptd" set app_support to (path to application support folder) as stringset DB_Library to (load script file (app_support & library_path)) set db_link to new_link("lala.yadayada.com", "user", "pass", "db") of DB_Library -- collect the job number you want to run-- Get the Numberset displayString to "Enter Job Number"set the theIcon to 1set theJobNumber to ""repeat display dialog displayString default answer theJobNumber with icon
[code]...
Info:
applescript, Mac OS X (10.7.3)
View 2 Replies
View Related
May 23, 2012
I’ve found this script that copies the names of multiple selected files in the Finder to clipboard: try set theNames to {} tell application "Finder" repeat with i in (get selection) set end of theNames to name of i end repeat end tell set {TID, text item delimiters} to {text item delimiters, return} set the clipboard to theNames as text set text item delimiters to TIDend try I need to prepend to each result a string like [URL] where “folder” is the parent folder relative to the files.
View 1 Replies
View Related
May 30, 2012
im looking for a more elegant way to list of folders in a popup for users to select at the beginning of my script and use as a path variable.the path i need to filter through to make the list is similar to the following: /Volumes/Network Drive/A/Client Name(s) starting with A//Volumes/Network Drive/B/Client Name(s) starting with B/ other folders will be created in the folder they select. The complications: All the folders i want to list are divided into folders labelled with each letter of the alphabet.Also there could potentially be hundreds of these folders once consolidated to a list The current script lists the entire file path in the popup. I want the entire path to be set as the variable but just the folder name to be listed in the popup These are the scrips i have started with but would love a better way to combine and clean up.
(*set mainList to {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "XYZ"}choose from list mainList with prompt "Choose Client"set listchoice to result as text*)set the_folder to (path to desktop) as stringset with_subfolders to trueset inc_folders to true set the_files to get_folder_list(the_folder, with_subfolders, inc_folders)return the_files on get_folder_list(the_folder, with_subfolders, inc_folders) set the_files to {}
[code]....
Info:
Applescript, Mac OS X (10.7.4)
View 4 Replies
View Related
Jun 13, 2012
I'm looking for an applescript to detect if a cd is inside my mac, if cd inside (possible to detect if empty?) do one thing.Otherwise do another thing.
View 6 Replies
View Related
Jun 15, 2012
how do I use apple-script to move the cursor?a few characters (left, right, down) in a word doc?
View 4 Replies
View Related
Feb 14, 2012
When i click System Preferences on the apple menu nothing will happen.
View 14 Replies
View Related
Mar 21, 2012
I'm running 10.7and I'm trying to create an applescript to install printers. I'm able to run the first command without issues but the other two keeps giving me error messages in applescript. I assume its because the other two commands have spaces? These are the commands I run when in Terminal:
/usr/sbin/lpadmin -p CX560 -E -v lpd://CX560/print -P /Library/Printers/PPDs/Contents/Resources/en.lproj/US-Letter/CX560_V1.PPD -D FireStationCX560
[code]....
This is the only command I can successfully run in AppleScipt:
do shell script "/usr/sbin/lpadmin -p CX560 -E -v lpd://CX560/print -P /Library/Printers/PPDs/Contents/Resources/en.lproj/US-Letter/CX560_V1.PPD -D FireStationCX560"
View 2 Replies
View Related
Apr 16, 2012
I have an little program that iniciates an apple script from an arduino, so when the arduino prints a letter it gos from one video to another and back and fourth between videos in Itunes.I would like for the videos to start from the begining everytime, However, they always start where they left off. How can I create an apple script that makes each video start From the begining every time? Here are the scripts
Info:
MacBook
Pro, Mac OS X (10.6.8)
View 2 Replies
View Related
Apr 13, 2012
I need an AppleScript to restore a bunch of partitions from a master drive to a stack of external target drives. I don't mind partitioning them 1st, if necessary.The master drive has 16 partitions, all equally sized, and I'd like a script to run that will have Disk Utility to just go down the list restoring each partition to the matching 16 partitions on one of the target drives.
Info:
Mac OS X (10.7.3)
View 14 Replies
View Related
Jul 3, 2012
I have a folder with mulitple subfolders. Each one has a different number of files in it. I want to use Automator or Applscript to summarize the contents into a text file or email:
folder 1 name / number of items
folder 2 name / number of items
folfder 3 name / number of items
etc.
Info:
Mac Pro, Mac OS X (10.6.4)
View 4 Replies
View Related
Jun 11, 2012
I am creating 2 AppleScripts to automate mounting Windows shared drives on Lion Macbook Airs. The first creates an alias on the user's desktop to the user's shared drive. This is functional and doing what I want it to do. The 2nd script attempts to create a favorite to the alias in Finder's sidebar. Unfortunately, I can't seem to get this script to work.
I am attempting to create an alias on a user's desktop to a folder in a Windows network share.Here is my applescript: set user_name to (short user name of (system info))tell application "Finder" activate set myFolder to ((home as text) & "Desktop:" & user_name)select myFolder tell application "System Events" keystroke "t" using command down end tellend tell The script runs, Finder opens to the user's folder, but nothing is added to the side.
View 1 Replies
View Related
Apr 1, 2012
I had a DNS server issue so I cleared out the named dir and created new db files. The server is showing up properly in the Server App but when I ping mail.internalserver.com, it comes back with the external address. I ran a dig on it and it showed the DNS server as 4.2.2.1 instead of 192.168.1.2. Any idea why it's ignoring the internal DNS I setup? No errors in the logs. It just doesn't ping using the internal server.
Info:Mac OS X (10.7.2)
View 11 Replies
View Related
Nov 1, 2009
Trying to e-mail my new G-mail address to my apple address book folks but cannot figure out how to get ALL the addresses to move at once
View 1 Replies
View Related
Apr 8, 2012
Do I need an Apple email address to use iClould?
Info:iPhone 4, iOS 5.1
View 1 Replies
View Related
Mar 11, 2012
I changed the email address for my apple id online using "Manage Your Account." I changed it as well on my iPhone. How do I change the apple id on my mac? I've gone into system preferences - I cloud but can't see how to change my apple id.
Info:
MacBook Pro
View 1 Replies
View Related
Mar 24, 2012
As many of you know, Apple's MAC OS X User Interface utilizes small fonts. For example, look at the top-most bar of your screen--the menu bar. Even the Apple icon is tiny. Next is the Bookmark toolbar.Its fonts are almost indistinguishable to those of us who are sight-impaired. A poster with the username i joel posted back in 2007 peading with Apple on behalf of sight- and movement-impaired patients/clients to just make the Finder bar larger and increase the font size so that his people could see the screen content better. Apple had a golden opportunity then to address this issue and champion the needs of disabled users worldwide.
Info:
Mac mini, Mac OS X (10.7.3), 500Gb HDD, 4 Gb RAM, Super Drive
View 14 Replies
View Related
Apr 23, 2012
where do I update my apple ID email?
Info:
iMac
View 2 Replies
View Related
Jun 14, 2012
Is there a support email address for Apple?
Info:
MacBook Air, Mac OS X (10.7), 2011
View 3 Replies
View Related