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
ADVERTISEMENT
Sep 3, 2014
I have 4 drives on my mac pro and tons of folders, some with sub folders. I need a searchable listing of all folders and sub folders to consolidate, re-organize, etc. I don't mind buying a utility but would like something that can do all of the above and either let me search and organize the list or let me dump it into Excel.
Info:
Mac OS X (10.5.7)
View 12 Replies
View Related
Apr 16, 2009
Is there a way to list every file on the computer by size? I'm trying to see what's taking up so much space. I have a 15" unibody mbp with a 320 gb hd and I only have like 30 gb left ... i use fcp and tried cleaning out all the capture scratch folders i don't need . but i want to list it all if possible.
View 2 Replies
View Related
Mar 8, 2012
Me again this script works but if you then delete the last folder creation and run again it won't create the folder. I was try to make an, if folder exists then ignore else make folder? Matt set folderPath to "Hal 9000:Users:matthew:Desktop:DIVA_WK30_PSD"set {oldTID, my text item delimiters} to {my text item delimiters, ":"}set folderName to last text item of folderPathset my text item delimiters to "_WK"set FolderEndName to last text item of folderNameset brandName to first text item of folderNameset my text item delimiters to "_PSD"set weekNumber to first text item of FolderEndNameset my text item delimiters to oldTID set this_local_folder to "Hal 9000:Users:matthew:Pictures:2011-2012"tell application "Finder"try set localWeekFolder to make new folder...
[code]....
Info:
iMac, Mac OS X (10.6.8)
View 7 Replies
View Related
Jun 22, 2014
Every 5 minutes I get three pop ups asking for a keychain login, these are "Mail", "calendarAgents", and "com.apple". How do I get rid of these???
View 1 Replies
View Related
Mar 15, 2012
I am using a script that Jacques Rioux kindly helped me out with a couple days ago. I altered his script a little to complete a different task I needed to create a shortcut for. The script below first creates two folders (TIFF & JPEG) and then it sorts files with an extension .tif into the 'TIFF' folder and files with the extension .jpg into the folder named 'JPEG'. This works great but I would like the script to effect multiple folders. Can anyone help me add to the script so when you click it, a prompt will pop up allowing you to choose multiple folders to apply the script too? As of now it will only work on one folder at a time.
Info:
MacBook
Pro, Mac OS X (10.6.8)
View 2 Replies
View Related
Jun 21, 2012
How can one count only visible folders (one level down only) in the Finder?
The following script works fine except that it appears to count some invisible folders eg: when the selection is the startup disk the count is 6 although the actual number of visible folders is only 4. tell application "Finder" set vSelection to selection as alias count every folder of folder vSelectionend tell
I have tried various ideas such as "whose visible is true" but to no avail.
Assuming it is possible to perform a successful visible folder count, how could one then move between these visible folders in the Finder prior to performing a command (eg: open)?
View 2 Replies
View Related
Sep 9, 2014
My computer was locked by a pop-up that resembled safari. It had "applesecurity" and a phone number to call. I removed it by reading through the community. How can I determine if malware was installed on my computer? From what I read it doesn't seem like a good idea to install anti-virus software.
Info:
MacBook Pro, OS X Mountain Lion (10.8.5)
View 2 Replies
View Related
Mar 11, 2012
I currently have a MacBook Pro and I'm considering buying an iMac for home use. I want to keep the files between both computers in sync. It would also be a plus to keep mail, contacts, photos, etc., in sync between both computers, but my main focus is files and documents.
Info:MacBookPro, Mac OS X (10.7.3)
View 3 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
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
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
Dec 30, 2009
I've used Apple Mail for years but struggled so long with the folder structure. I would love for my multiple "Mailboxes" (folders) to go under the Inbox like such: The reason being when I create new mailboxes they go to a completely separate heading under that e-mail address. So when my searches in Apple Mail are not comprehensive, as it'll often search the Inbox without searching the other Mailboxes. This is such a simple feature yet my web searches have proved fruitless. I've also contacted my ISP Host Gator but recommend that I ask Apple or search the internet.
View 2 Replies
View Related
Jun 25, 2012
I have a Macbook that is about 4 years old. The charger doesn't connect and charge properly - It works if I hold it on the computer. My question is - how can I tell if I need a new charger or if it is the charging dock in the computer. The magnetic connection does not seem to be clicking in the way it is suppose to. Any one else have experience with this who can offer some ideas?
Info:
MacBook (13-inch Early 2008)
View 1 Replies
View Related
Jun 18, 2009
I've used Apple Mail for years but struggled so long with the folder structure. I would love for my multiple "Mailboxes" (folders) to go under the Inbox like such: The reason being when I create new mailboxes they go to a completely separate heading under that e-mail address. So when my searches in Apple Mail are not comprehensive, as it'll often search the Inbox without searching the other Mailboxes. This is such a simple feature yet my web searches have proved fruitless. I've also contacted my ISP Host Gator but recommend that I ask Apple or search the internet.
View 3 Replies
View Related