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
ADVERTISEMENT
Jun 24, 2012
Would there be a script I can run in Apple Script Editor that changes several folder icons inside another folder all at once?
View 14 Replies
View Related
Apr 24, 2012
how can i do a script which does one thing if it finds one application running, and does another thing if it finds the same application not running?
View 3 Replies
View Related
Apr 24, 2012
unable to detect usb stick in w7.
Info:
MacBook Air, Mac OS X (10.7.3)
View 1 Replies
View Related
May 31, 2012
Script to detect when USB stick is plugged to my mac.
View 11 Replies
View Related
May 7, 2012
I can change the volume level from the command line using this command, For example: osascript -e 'set Volume 3'. Is there a way to detect the current volume level using a similar command and a way to assign it to a variable? And just for good measure, are there similar commands for detecting and setting the current balance?
Info:
iMac, Mac OS X (10.6.7), MySQL 5.1, Perl 5.10, Apache 2.2
View 4 Replies
View Related
Apr 20, 2012
What versions of Mac OS X has an Applications folder inside the users folder?
View 1 Replies
View Related
Sep 22, 2009
Snow Leopard's abandonment of Creator Code metadata, used to open a file with its creating application, has some users are worried that Apple has killed off a core Mac-centric feature. Instead, Apple has invented a superior alternative for the old Creator Code in order to support a variety of new features. Here's why, and what the new Uniform Type Identifiers offer. What is a Creator Code?
Back in the early 80s, Apple developed a variety of unique conventions to make the Macintosh intuitively easy to use, almost to a magical extent. One example pertains to invisible file metadata that helped the system identify documents using Type and Creator Codes. Each file was tagged with both a Type and a Creator, allowing the system to distinguish between applications that could open a file and the default application that should open the file. The Finder could also use this invisibly associated file metadata to present custom file icons for different files of the same type but created by different applications, such as two JPEGs, one saved by Graphic Converter and the other by Photoshop..............
View 39 Replies
View Related
Mar 21, 2012
When trying to download java runtime on my mac which has OS X 10.7.3, it seems to freeze with a message "finding software".
Info:
iMac (27-inch Mid 2010)
View 1 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
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
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
Oct 14, 2009
Years before Mac OS X 10.0 was first released in 2001, Apple launched Mac OS X Server, targeting its newly acquired Unix-based operating system technology at the education and workgroup server market. Apple has struggled ever since to find a broad server strategy that works. The solution may be as obvious as the iPhone App Store. Mac OS X Server has remained firmly stuck in the background even as Mac OS X has blossomed. Over the last decade of Mac OS X's development, Apple transformed its legacy Mac operating system from an outdated relic stuck in maintenance mode throughout most of the 90s into a highly regarded system that gets as much or more respect from industry critics as any other desktop operating system.Apple accomplished something that many others in the industry failed to do: marry the power and familiarity of Unix with accessible ease of use in a commercially successful product. Ray Noorda tried to do this at Novell in the early 90s; Caldera's OpenLinux also failed to take over the task from Novell ten years ago. United Linux and a series of followup attempts to standardize Linux all failed to accomplish their aims. A variety of efforts to sell Linux to consumers since then have all made very little progress outside of a small niche of hobbyist users.
View 39 Replies
View Related
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
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 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
Feb 13, 2012
i am running awin7 in bootcamp. in this bootcamp i am using outlook 2010. i cannot create an "@" in emails. is there any shortcut to create an @? is there any combination to create the windows "alt gr" on the macbook air keyboard?
Info:
MacBook Air, Mac OS X (10.7.3)
View 1 Replies
View Related
May 16, 2012
How do I sync Google Apps mail account with Apple Mail 5.2?
Info:mail 5.2, Mac OS X (10.7.4)
View 2 Replies
View Related