What i am trying to do is create a program that lets the user have a small conversation with the computer but i don't want to use "else" and list the possible inputs seperatley and have to write the same thing over and over again. does anyone know of a way i can list possible inputs together and have them lead to the same result?
I would like to run a script when a user selects log out from the apple drop down to ask the user if they backed up their data before it allows them to log out. I created a script that prompts you and then brings you to the logout screen but do not know how to get it to run, or something similar to run, when you select log out. Obviously, I do not want it to run when the user has already logged out. The other option I see that could work would be to change the message, "are you sure you want to quit all applications and log out now?" which I cannot figure out how to do.
I'm making an applescript app for my company, and had a question.The functionality of the app is working great, but there is a certain step which can take up to several minutes.This can give the user the feeling that nothing is happening and things are stuck. Is there a possibility to display a dialog as long as the action (shell script) is running?Something along the lines of "Now performing action X.
Been up for a while trying to figure this out with no luck. I created an app that will uninstall a program and all of it's files.Â
example try                   do shell script "rm -rf /Applications/TestFakeApp"          end try    try                   do shell script "rm -rf /Applications/TestFakeApp2"          end try    try                   do shell script "rm -rf ~/Library/Preferences/com.FakeTestApp.plist"          end try         try                   do shell script "rm -rf ~/Library/Preferences/com.FakeTestApp2.plist" end try         try                   do shell script "rm -rf ~/Library/Logs/FakeTestApp*"          end try         try                   do shell script "rm -rf ~/Library/Application\ Support/FakeTestApp" end tryÂ
there are alot more paths to remove but this is just a few for exampleÂ
I want to be able to create a log.txt file on the desktop to show what has been removed and or what could not be removed.Â
I then tried by creating a text document by usingÂ
do shell script "touch ~/Desktop/test.txt"Â tell application "Finder"Â open file ((path to desktop folder as text) & "test.txt") using ((path to applications folder as text) & "TextEdit.app")end tellÂ
but I don't know what to do next.Â
1. Have it check for each file to see if it was deleted or not
I'm new to ApplesScripting. I've found this script that I'd like to change: --This script will make a new folder on the desktop with current date and dialog box--format the date to 2010-11-19tell (current date) to get day & (it's month as integer) & (it's year as integer)set TheDateFormat to the result as text -- asks for folder name with date as default answerset TheFolderName to text returned of (display dialog "Name the folder" default answer TheDateFormat) --make folder with date & user entered texttell application "Finder" make new folder with properties {name:TheFolderName}end tell The desired changes:- Date format should be: 150412 + a letter (a, b, c) if the folder to be created already exists.- Place the cursor at the start of name dialog, no selection active.- The new folders should be created in /Users/Hans/Dropbox/Jobs/Another question is related to execution of the script:- How can I start the script easily with a shortcut key or a Dock icon?- Is it possible to select client name from a plain text file containing client names in separate lines?- Is it possible to have zip files automatically unzipped to subfolder names with the zip package name?- Regarding the Dock icon I could even imagine that I drag a zip or other file from an email or the Desktop to the icon and that I only have to type the clients name to have the file moved to a new folder. user entered texttell application
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.
Please accept my apologies if I'm posting in the wrong section . I've been using the fantastic Create Booklet PDF Service (workflow) by Christoph Vogelbusch (his page is on .mac, so it just went bye-bye). I'd like to turn this worklfow into a folder action so that when a file is added to the folder, a pdf booklet is created automatically. In particular, I'm interested in doing this in Microsoft Word. Can anyone tell me if this is even possible, and if so, either point me in the right direction (or, at least, to the best Automator community where I might repost this request)?
Info: 2.2 GHz Intel Core 2 Duo MacBook Pro, Mac OS X (10.6.3)
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:Â
I want to create a disk image of a Mac drive (.dmg file).I figured that it might not be a good idea to try and image a live disk, so I unmounted it (the user dragged the disk icon to the eject icon), and I confirmed it was unmounted by looking at /Volumes. To be clear here, this isn't the boot volume, that is /dev/disk0./dev/disk1 is an internal drive - as it happens it's the original drive for this OSX 10.4 G5, AND /Volumes/HITACHI is the mount point for an external USB drive.I have tried this twice.On both occassions, things seemed to go well, but after a few minutes (about 10 - 20 minutes), I observed that the target file on /Volumes/HITACHI stopped growing, then a bunch of unpleasant stuff started to happen:
* I did lsof /Volumes/HITACHI/MacHD_20120201.dmg and found the PID of the diskimage binary, ps waux showed it was doing nothing (CPU% was 0.0). This indicates a stuck process to me.
* The hdutil command stopped producing '.'
* I could not cancel the hduitl command
* I could not rm the MacHD_20120201.dmg file
* I could not ls the /Volumes/HITACHI directory
* unlink also hung
A little further into this, the Mac became unresponsive. I observed that the disk was now mounted again (grrr!). As a work around I switched the USB drive off and on, and Mac came good - all my terminals started to respond, the GUI responded for the user.My workaround has been to use CCC to make a clone of the disk - but I don't like this because I think .dmg files are much more convenient (for a start, now that I've used CCC I can't use the USB drive for anything else).
* Is my methodology wrong? Do I really need to umount the /dev/disk1
* Can you disable finder from automounting an internal hard drive (I am particularly interested in this)Â
Of all the things I've learned to do on a Mac over the years, and with all the help I've provided here at MR, I still don't know how to do the following:
On a rolled out dialog box like the one shown below, how does one go about selecting something other than the highlighted button (in this case Save...) using the keyboard?
I think Escape usually works to select Cancel, but how would I select Don't Save using the keyboard? Why can't I simply Tab over to it and hit the space bar or Enter?
While we're at it, I'm familiar with taking a screenshot of an entire window (CMD+SHIFT+4 followed by Space) but that doesn't seem to work to take a screenshot of a window + the dialog box, other than the sloppy way I just did?
Since the last OS update to snow leopard my dialog boxes have looked different. I'm assuming this isn't how they are supposed to look. Does anyone have any idea whats going on or how to fix it?
Using OS X Mail, is there anyway to print an email without having to see the print dialog box? On Windows, Outlook has a "quick print" icon that you can put on the toolbar that does just that. I was just wondering if it was possible to do in OS X.
Under Safari-Preferences-Passwords, there is a list of my online passwords. How can I copy the contents of that dialog box and paste it into a printed document that I can put away in a safe place?
My generic Page Setup dialog box e.g. used for Word etc. doesn't work.
The "Setting" menu doesn't work at all, i.e. I can see the dropdown but it doesn't accept my changes (it's fixed on "Page Settings". All other menus or choices are accepted but then the "OK" button doesn't work; it just flickers briefly and then goes back to blue. The "Cancel" button makes all contents of the dialog box disappear except for the framne and the buttons. Either way force quitting and relaunching the application is the only way to continue working in the application.
What could be the issue here?
A few specs on my hardware, printer and system:
- MacBook Pro (brand new)
- OS X 10.5.5
- Printers: hp LaserJet 4200 (main printer), iP5200R, OKI B6200, Lexmark E321. All these printers I used without problems with my old PowerBook G4.
The problem occurs with all applications using the generic Page Setup dialog, such as Word, Grab etc. In Excel e.g. all these functions work (it uses a different kind of dialog box for the page setup).
The problem could possibly have started to occur when the Lexmark printer could not be installed automatically so I assigned it another Lexmark driver, which seemed to work. But I'm not sure whether those two problems occurred at the same time.
What I tried already:
- uninstall and reinstall all printers in the Print & Fax part of the System Preferences. I uninstalled all printers and (without restart) reinstalled the hp printer only. The problem was still there, even upon restart.
- reinstall Word (first I thought it was a Word problem)
Is there a possibility, to have more print options in the OS X print dialog? Specifically, I want to change quickly the layout of E-Mails, I print (font size bigger, smaller, rewrap mail, move attachments, so they print properly on one sheet instead of spreading on 4 sheets, etc.). I was a heavy user of fineprint for Windows back then and loved especially the implemented big print preview.
I've just updated to FCPX 10.1.3 and cannot get the "share" dialog to appear anymore. I've tried calling it up through the file menu, through Command-E and through the little share icon on the right. When attempting through file, the file menu disappears as if the command has been recognised, yet no dialogue appears. When attempting through the share button, there is not suggestion that even my click has been recognised, yet I am able to click "add destination" at the bottom.Â
I've tried opening up a new, blank project and adding a single, unaltered clip and get the same problem. As mentioned before, I'm running FCPX 10.1.3, on OSX 10.9.4. I've used FCP on my machine before (including exporting) with no problems.Â
Info: MacBook Pro (13-inch Mid 2012), OS X Mavericks (10.9.4)
I open System Prefs and click 'Print & Fax'. I click + to add a printer. The dialog box opens for a few seconds and then closes. Just that window. I cannot add a printer at all or even print anything for that matter. I ran Printer Therapy and it finds nothing wrong. Same with TechTool Pro. Nothing seems to be wrong except this.
Bought Epson CX3650 two months ago; have been printing only letters (i.e. black) which has run out, but so have all the other colours (can't understand why as I've printed next to nothing in colour). Ordered a new black cartridge but wouldn't print as other inks (which I don't need) have run out. Have looked for a "Black Only" option in the print dialog box but can't find it. Anyone know a quick fix that avoids buying 4 colour inks every time? Running Mac System 10.3.9.
I've been having an odd problem: I run Mathematica 7 remotely using SSH and X11. Everything seems to work fine *except* that everything hangs the moment I do something that opens a dialog box. For example, if I try to Save As or Open a document, the window will become unresponsive and I have to kill the process using the command line. I'm using OS X Leopard and have installed the Mathematica fonts following these instructions
Is there a way to make the cursor go to a dialog box when a page is opened? I use Firefox and when I go to a page that has a box where I have to apply a password etc. I have to click on that box. I would like to have the cursor be in the box if available.
I had until now only used my macbook with "local" DVD from Region 2. I have a few weeks ago watched one single DVD from region 1, and had therefore to accept the region change in the pop-up dialog. I did accept knowing I would reverse to region 2 after.
I have not read an DVD until today, hen I am trying to load again a region 2 DVD.
Problem: DVd player or Handbrake do not see the DVD, (but VLC can), and I see no dialog offering me to change the region code.
1) where can I see what is my current setting? 2) how can I get DVD player Mac OS X to present that dialog, so that I can reverse to region 2?
I have my HP photo smart printer plugged into my time capsule. I never had any issues printing with my last laptop (MBA) but i just got a new 13" MBP and can't print. MBP sees the printer on my time capsule via Bonjour, but when I try to add it to my printers i get a dialog box that says: "type the name and password of a user in teh "_Ipadmin" group to allow AddPrinter to make changes." I have no idea what the "_Ipadmin" group is and i've tried all my normal user names & passwords but it tells me they are all wrong.
Sometimes when I let my MBP (see sig) go to sleep with the screen open, I come back and hit the spacebar to wake it up and it doesn't give me the password dialog box to wake it from sleep. All i see is a black screen with the mouse pointer on it. This sometimes happens when I wake and DO get the password box but if I wait and don't enter the password right away, the box disappears and wont come back. In both cases I'm forced to push the power button to shut it down and restart. Any solutions to this, or is it just a fluke?
I am running MS Office for Mac 2008 under OS X 10.6.3...
I do not get a printer dialog box when I print my slides so I do not get the chance to print speaker notes. Also, when running Word, I go directly to print bypassing the printer dialog box in Word.
I have repaired permissions, updated all my software (OS X, MS Office), rebooted.
I have a Mac Mini which serves as a media center, without a keyboard attached. After I have upgraded to Lion, it shows a "Can't find keyboard" dialog whenever I start up. It can only be dismissed by attaching a keyboard. Is there any setting that will make the mac ignore the missing keyboard?Â
I've been noticing a dialog box that appears and disappears in a fraction of a second, just enough to annoy me. It happens at random times, and have noticed it while working in various applications. I've checked Console and determined that this is the culprit.