OS X Technologies :: How To Exit Quickmask Mode In Applescript
Mar 14, 2012
This works except for the exit quick mask mode.Anyone else been able to do it? tell application "Adobe Photoshop CS5.1" activate tell front document if (quick mask mode) then exit quick mask mode.end tellend tell
As of last night, my MBP started acting very strangely. After entering my username and password, it would enter the desktop for a short period of time and then kick back into sleep mode; the screen would turn back to black. Sometimes it will let me stay on the desktop for a long time and other times it will hardly let me stay on the desktop. I called apple support and they had me start the computer in safe mode; even then it occasionally kicks me out. The tech guy said that it was a "strange software issue" and not a hardware issue. I thought it was a hard drive issue; my hard drive makes an odd sound when it unlocks, but it has been doing that for quite some time with no issues. I tried to reset the SMC and it didn't do anything.
I am running OS X; not leopard or snow leopard. I know I need to upgrade, but this shouldn't be happening.
I created this piece of code using AppleScript Editor on OS X Lion 10.7.3 and I want to make it automatically repeat itself every 10 seconds. The code is supposed to reload the tab which the user is currently on every 10 seconds. I made the reload part but can't figure out how to make it reload every 10 seconds after extensive googling. Here is the code, can someone add the needed code it to make it reload the current page every 10 seconds and reply to me please.tell application "Safari" activateend tell tell application "System Events" tell process "Safari" keystroke "r" using {command down} end tellend tell
I tried to login to my brand new iMac (running Lion 10.7) via Target Disk Mode so as to transfer my data from my old machine. However, the passwords didn't work. This is not a disaster, however, I am now unable to exit Target Disk Mode. I have tried removing RAM and restarting holding down alt+cmd+R+P to reset the PRAM but it just goes straight back to Target Disk Mode. No matter whjat I do it goes back to Target Disk Mode with the padlock and opassword box.
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.
I'm trying to automatically convert Excel files to PDFs using Automator. Although, every time the Excel file is opened, I get a message about links to other workbooks. I really don't care about these links and just want to convert the file to a PDF. I just can't get Automator to press the "Ignore links" button on the Excel message.Now I've found out that pressing the escape key on my keyboard activates the following buttons on the Excel message about the links:
- "Update links" (then there's a Finder window popping up)
- "Cancel" (the search for other workbooks) (another Finder window pops up)
- "Cancel" again
Then Excel opens up the file I need to convert, so I can actually convert it using Automator and do whatever I want with it.I have absolutely no experience using AppleScript.Is there a way to make a AppleScript that presses the escape key three times, so that Excel just opens my file?
I'm trying to play a new track on a playlist every 30 seconds. Thought I'd play around with AppleScript. Here's what I've got: on run {input, parameters} (* Your script goes here *) tell application "iTunes" play track 1 of playlist "Night"   end tell  repeat 10 times delay 30 tell application "iTunes" next track end tell end repeat return inputend run This sort of works, but not until the 4th track on the playlist. It seems to play the first three for a few seconds, but passes over them very quickly (not 30 seconds).
I am currently getting to grips with applescript. I have created some documents using pages 09 and pull in a couple of charts onto these doc's using Numbers 09. I am trying to find the applescipt command that tells Page 09 to Refresh or Sync the data from Numbers 09. you can do it manually by cliekc ing the Sync/Refrresh arrow thingies but i cant find a way to automoate it
This is probably very easy but I just can't get my attempts at applescript to work. I normally use Windows but the Apple server hosts our phone system and I've been told I have to delete all old voicemails for data protection reasons. I would like to delete all WAV files in a folder tree over 90 days old and have this script run once a week. The folder is on a disk called Vision Array, and the folder path is Vision, Voice, Voicemails with subfolders 2010, 2011, 2012, each with folders within them.
The folder seems to have some sort of security on it that only allows the Vision user to modify it. I know the Vision password. I've tried do shell scripts find -type f -exec rm etc but get syntax errors. I've tried delete every file whose modification date is less than etc but get errors saying the modification date couldn't be turned into Unicode. I also couldn't get this to recurse folders.
I'm creating an AppleScript application bundle that relies on a separate application. I want to add this application to my bundle and then call it via "tell application xyz ... end tell"Â
So far I have been unable to make AppleScript see this application, except when I gave it the absolute path of where it is located. Obviously, as soon as my application bundle is moved to a different directory this will not work anymore so is not a solution. Tinkering with "path to me" and thus creating the current path to the bundled application also does not work, when saving the script, ScriptEditor tries to find the application and see if the commands I want to tell it exist btu fails and consequently does not save.Â
I tried putting the application into the Contents, Contents:MacOS, and Contents:Resources folders, all without success.Â
Im using package maker and has a script to create my alias, but i am relatively new, and want to change the alias' icon to my applications supposedly icon.
as my app is base on HTML5 thus we are using the browser to open the app
I have to realize a user-based firewall with a draytek vigor 2850 router. Therefore every user has to login at the router during startup with a individual telnet parameter sequence. With the Terminal application the following procedure works fine.Â
I am currently using automator to make folders named after the large numbers of images. I have everything set up and its working great but I am trying to make it more efficient.Â
I strip the filename to just the first part of the code eg "bmz12345" and make the folder from that.Â
However, In order to do this I have to create a dummy text file or folder somewhere named after the fulle code (bmz12345_black_1) and then strip it down (bmz12345) set a varible of the new filename and then create the folder in the desired location with the right name.Â
After getting the name of a finder item, Is it possible to change the text that is passed to it without creating a file out of it first?
I would really like for the Faces pane in iPhoto to sort the faces based on how many photos there are of that person, i.e., the person with the most photos would be first in the list, the person with the second most photos would be second, and so on. I feel sure that it is possible to write an applescript that would do this, but I have almost no experience with applescript. I have 688 faces, so sorting alphabetically mixes my loved ones in with people that have very few photos, while sorting manually is tedious and needs constant updating.Â
1. Is it possible to do make iPhoto sort in the way I want, either with an applescript or by some other method? and 2. if it is possible, how do I find someone who can write the script for me?Â
I am trying to write a generic script that will mount a disk upon log in of a user So far I have this: (which works for a specific user:)Â
try mount volume "smb://MyUserName:MyPassWords@ServerIAmPointingTo" end try Â
I have pointed the script to my log in prefernces so it runs automatically when I log in. Is there a way to do this with a generic username/password? If I wanted to give this script to 100 of my co-workers, they would all have to modify the code to their credeintals. But is there any defaut usernames or passwords that AppleScript will take?  Maybe something like: mount volume "smb://default:default@ServerIAmPointingTo" ...? My goal for this script is to have it run on peoples desktops at work to point to the same server, since I work in IT. But, I don't want to modify each script for each unique person.Â
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)?Â
I have never worked with applescript before, so I am completely lost. I have a program that does not like to be open when the computer goes to sleep. I usually remember to close the app, but sometimes I forget and get myself in trouble. If I do forget, very bad things can happen to the database of the program, so it is imperative that it is closed.
I am hoping there is an applescript that will quit the application if I put my laptop to sleep, usually by closing the lid. I don't want to trigger the sleep with the applescript, just something that will see that the computer is going to sleep and quit the application before it happens. Is this possible, and if so, how do I go about doing it?
Info: MacBook Pro (15-inch Mid 2009), Mac OS X (10.7.4)
When I go on youtube and use full screen mode, pressing escape doesn't work. For some reason, my (10.6.2) MBP makes me press control escape. this has also been happening with quicktime. What is going on?
I wanted to get started quickly so I put Mac Mail into "Classic" mode. Can't remember how but i think i was asked in a modal dialogue if I wanted to. Been through every Menu item and the Help and can't find any refernece to 3 column view except that it exists. I'm finding Lion a bit rough around the edges even though I'm on 10.7.4. The help is cursory like I said no reference to 3-column except how great it is and can't find a manual for Mac Mail at apple.com.
Info: MacBook Pro, Mac OS X (10.7.3), 10.7.4 actually Wacom 6x11
I'm currently writing a GUI applescript program, and I wondering if there was a way to intercept the red "X" button being clicked. I would like to execute my own code before the window closes. If that's not possible, is there a way to make the application quit when the window is closed, like in System Preferences.app?
I have thousands of music projects with a somewhat fixed folder hierarchy and I'm trying to first rename and then extract (move) certain files from their original location.Â
Here is the most common example of the hierarchy: ProjectName/Info/Setups/fixed name file (either a pdf, txt or jpg)Â
My goal is to have these files renamed after their parent folders, all the way up to the Project Name and then have them moved to a set folder, out of this dull dictatorship I've created, so my files would end up with a name like this:Â ProjectName - Info - Setups - fixed name fileÂ
I'd like to know if it is possible to detect if something is attached to the serial port.
I have two USB uart which are connected to my mac mini. They are recognized by the serial port as "usbmodem" and then a number. I'd like to restart my computer is the Mac doesn't see them both.
I'm creating a Service in Automator, and would like incorporate an Apple script that will "cut" the first word in any Numbers cell that I select, and "paste" it into the cell directly to the left of the the cell I've selected. Let's assume the column I'm selecting from is Column C. As a very rough start, here is what I have (with some of things I'm trying to accomplish in brackets): on run {input, parameters} try set MyText to input as string set FirstWord to first word of MyText set [remove the first word and a single space from what I've selected]tell application "Numbers"tell table 1 of sheet 1 of document 1 set theRow to [the row of the cell I've selected] set value of cell 3 of theRow to FirstWord end tellend tell end try return inputend run.