OS X Technologies :: Apple-script - Use The Result Of A Library Return Value?

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


ADVERTISEMENT

MacBook Pro :: Don't Accept The UPS Delivery, Will UPS Return It To Apple

Apr 8, 2012

I ordered a macbook but I realized too late that I had ordered the wrong keyboard. If I do not accept UPS delivery, will UPS return it to Apple? Or will UPS simply store it until I pick it up?

View 4 Replies View Related

Intel Mac :: How To Return To Apple Cinema Display On 27 "

Mar 7, 2012

i was playing with my screen resolution and changed something now my resolution is set to 1280 1024 but i want it back to cinema full screen factory default and the stretched version is not an option 

Info:
iMac, Mac OS X (10.7.3), 27"

View 3 Replies View Related

Software :: Receive A Return E-mail Receipt Using Apple Mail And A .Mac/.Me Account

Aug 19, 2010

Does anyone know of an easy method to receive a return e-mail receipt using Apple Mail and a .Mac/.Me account. I know that in Windows you can use Outlook to receive/request a return receipt when the receiver opens the e-mail. I believe that even using Microsoft Office Entourage '08 would work as well but I really want to stay all Apple applications if at all possible

View 2 Replies View Related

OS X Technologies :: Apple Script For Mail Headers?

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

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 View Related

OS X Technologies :: Changing Background Via Apple Script

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

OS X Technologies :: Combine 2 PDF Files Into 1 Using Apple-script?

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

OS X Technologies :: Apple Script Address Book Calling?

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

OS X Technologies :: Accessing Cells In Numbers With Apple-script?

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

OS X Technologies :: Follow My Link Or Whcih Is To Varify My Apple Id?

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

OS X Technologies :: Change Desktop Background In Apple-script In 10.7?

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

OS X Technologies :: Apple-script: Prepend A String With Folder Name?

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

OS X Technologies :: Listing Folders In Apple-script Popup?

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

OS X Technologies :: Finding An Apple-script To Detect If A Cd Is Inside The Mac?

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

OS X Technologies :: Apple-script MS Word Move Cursor?

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

OS X Technologies :: System Preferences Won't Work When Click On It (on The Apple Menu)

Feb 14, 2012

When i click System Preferences on the apple menu nothing will happen.

View 14 Replies View Related

OS X Technologies :: Create An Apple-script To Install Printers - Can't Seem To Get It To Work

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

OS X Technologies :: Itunes Apple Script Start At Begining Of Track?

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

OS X Technologies :: Restore Multiple Partitions Through Disk Utility With Apple-script?

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

OS X Technologies :: Apple-script To List Folder Names And Item Counts?

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

OS X Technologies :: Adding Folder Alias To Finder Sidebar In Lion With Apple-script?

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

OS X :: 2 Key Commands Are The Same Have The Same Result?

May 23, 2009

2 Key commands are the same have the same result.

View 2 Replies View Related

IMac :: Bad Video Result

Mar 15, 2009

This iMac is equipped with the GeForce GT120, which I thought would give me some pretty good video performance, but not completely.

View 9 Replies View Related

OS X :: Spotlight Won't Result Any Of Folders Or Documents

Jun 29, 2009

Well, I use Spotlight religiously on a daily, hourly, maybe minute basis. I have a ton of organized folders under my Documents and when I search for any of those folders in spotlight no results are yielded. Not even if the whole folder is typed out, or even just partial. I tried typing in many different folder names I have but nothing.

Then I tried typing in spotlight the names of Pages files, Excel Files, Word, etc...you name it. But nothing.

View 3 Replies View Related

OS X :: Turn Off Spotlight Searching After Getting Result?

Nov 14, 2009

I need to have a question answered about searching in spotlight. Whenever I search for anything, I find what I need but after I open the "app/filename". Spotlight continues searching and it will continue to search until I "x-out" of the search field. Is this how spotlight works or can the search be turned off after selected a search result?

View 5 Replies View Related

Mac Pro :: MacPro & Bootcamp Win7 Performance Result

Nov 7, 2010

Macpro 8 Core 2.4Ghz with 12Gig RAM and top ATI card. Running Windows 7 through Bootcamp (much better than Parallels 6!). Ran the Performance Benchmark and returned a score of 7.6, except for HD which was 5.3. Apparently the top score for current hardware is 7.9, so I am wondering if others have run the test, and whether this is hardware or driver related etc, and what other people are getting.....

View 7 Replies View Related

OS X :: Preview In SL - View Missing Of Search Result

Sep 26, 2009

Search results in SL's Preview are not very helpful, because it shows only pages where given word/phrase occurs. I miss the view where the context of the search result was shown. Does anyone know how to get the behaviour of the pre-SL's Preview back?

View 1 Replies View Related

Mac Mini :: Ir Remote And Bluetooth Not Working / Result Of Bad Repair?

Sep 17, 2009

I have a late 2009 Mac mini that I bought in March. 2 weeks ago I tried to use an apple remote with it and it would not work. Apple change the IR board on the mini. After 10 days I picked my mini up from the apple store and I noticed 4 marks from when they opened the mini. Ripped aluminum gouge marks on the bottom of the case, the back of the case by USB port does not line up anymore. I brought it to there attention but did not make a big stink and left. I have open a few mini's before (not this one)and know how it is easy to mess up.

When I got home I tried to use my bluetooth devices and they would not work, I tried the magic mouse, track pad, KB. I called apple to trouble shoot and they said I have to bring it back in for repair after 20 minutes of trouble shooting.

View 3 Replies View Related

PowerPC :: G5 Running Slow / Clicking On Anything Result Is Beachball

Jul 29, 2010

I recently acquired a PowerMac G5. To be honest, I wasnt even sure what it was, it was given to me, and I popped off the side panel and saw that is says G5. Anyway, it is used, but was given to me by a family member who runs an IT department. anyway,here is my issue.

This thing is VERY VERY SLOW. It boots up fine, in what I would call a normal speed, but as soon as everything appears to be ready, if I click on anything, I just get a beachball. My first assumption was that it was the hard drive, as I could hear a clicking/ticking sound, so I popped off the side panel and the sound is coming from the hard drive. I have read through alot of threads, and it seems that the general consensus is that if it is in fact the hard drive, then it would not boot up. The other thing that I read is that it could possibly be the logic board. Where exactly is the logic board located at?

View 6 Replies View Related







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