Apple script for mighty mouse
I'm not sure where I should post this but I guess I'll start here. Does anyone know or know how to write a script so I can make the side button of the mouse go back a page while using Safari?
the following will do it (you'll have to save it as an application):
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #ADD8E6;
overflow: auto;"
title="this text can be pasted into the Script Editor">
tell application "Safari"
activate
do JavaScript "history.back()" in document 1
end tell</pre>
However, that will really reduce the efficiency of the side button as it will only do it in safari. you might want to reconsider doing this. alternatively, take a look at [USB overdrive|http://www.usboverdrive.com/USBOverdrive/News.html] which will give you a lot more functionality without restricting the use of a button to a single application.
Similar Messages
-
Where is the support forum for Mighty Mouse?
Hello,
does Apple have a support forum for Mighty Mouse.
my Mighty Mouse will not scroll down...
all information will be appreciated,
thank you..!does Apple have a support forum for Mighty Mouse.
No there is not a specific forum for the Mighty Mouse, generally you would normally post in the peripherals/input section of the forum related to your Mac, so if you have an iMac post in the iMac section.
iFelix -
Apple script for Message box when Mail app Compose Window Opens
Hi there
I'm trying to make mail app remind me to choose the right emaill address to send from since I have several email addresses. Is there a way I can make or write an apple script for a message box to pop up whenever mail app's compose window opens up.
I can do for the case when I actally click the compose button when I'm on mail app by using UI scripting. But when it comes to hyperlinks which opens up the compose window, it fails.
I just want a script to see whether the compose window is open and if open pop up a message box.
Thanks
Best regards
Zam Shabeer ThahirTaoChitpol wrote:
By the way, the problem happens with the account of MS Exchange service, I don't know if this is the cause of the problem.
I think yes. The encoding is being corrupted somewhere, probably Exchange. There is nothing you can change on the iPad other than the OS languagel, to see if that helps. You can also tell Apple at
http://www.apple.com/feedback/ -
Apple Script for deleting podcasts
I subscribe to a lot of podcasts, but I don't want to keep them in my iTunes library after I'm done listening to them. Is there an Apple Script for automatically deleting podcasts? Thanks.
Thanks - once I'm in Automator and select Music, I don't see any options for finding Podcasts. Any suggestions which item/step I should select next in Automator? Thanks.
-
Apple Script For Opening External EML File With Apple Mail
Hi folks,
I am working with Apple Script for implementing numerous function related to Mail App.
I am using the following Apple Script lines for opening the mails which are in Mail app for each modes.
View Mode : open theMsg
Reply View Mode : reply theMsg opening window yes
Reply All Mode : reply theMsg opening window yes reply to all yes
Forward Mode : forward theMsg opening window yes
I want to know how we can open external eml file in different view modes (View, Reply, Reply All and Forward) using Apple Script or Apple Event programmatically with a similar mechanism available through script in Mail App.
Thanks in advance. Regards
NisarI'm not sure what you're doing here, but this isn't anything I recognize as compilable applescript. what is this 'mode' thing you're talking about.
at any rate, if you have a loose emlx file sitting around somewhere you can simply open it in mail (use the 'open' command and the file specification for the emlx file) and work with it appropriately. if you're talking about an actual eml file (e.g. from Outlook Express) you'd have to GUI script Mail's 'import mailbox' command (the applescript handler for importing mail only works with Mail.app mailboxes) -
Software for mighty mouse, airport extreme won't load?
My old mouse won't work with mini. Mighty Mouse and Airport Extreme Software won't load (Macintosh HD 74.4 GB, 64.06 GB Free).
Mighty mouse is connected, but wont let me do what I need.
I want to use mini to surf net, manage ipod, email. I was assured at Apple store that I was buying a more powerful competer than my needs.
How do I get this thing to work properly?
TXWhen did you buy your Mini ? Has it got Tiger (Mac OS X 10.4) on it ? Most of the Mighty Mouse's functions will only work under Tiger ...
What do you mean by "Mighty Mouse and Airport Extreme Software won't load" ? Your post is very unclear and we need more information in order to help you. Does it give an error message ?
You might try to open Disk Utility (located under Applications > Utilities) and repair your hard drive's permissions (simply highlight Macintosh HD, and then click on "Repair Disk Permissions"), and then try to install the software.
I don't think you need to install anything to use AirPort Extreme, the software is preloaded, but since not all Minis come with AirPort as standard, the "backup" disk comes separately from the main Install Disc. Or is it software for the AirPort Extreme Base Station ?
Another question : is it your first experience with OS X / the Mac platform ?
Mac mini | 1.25 Ghz G4 | 1 GB RAM | 40 GB HDD | AirPort Extreme Mac OS X (10.4.3) External 250 GB LaCie HDD | LaCie FW DVD-RW DL 16x | 20 GB iPod w/Color Display -
Apple Releases BT Mighty Mouse!
As rumors were reporting yesterday, Apple released a BT Mighty Mouse! This mouse differs from the current one, as it uses laser tracking. Bought one just now online. It will be a perfect compliment to the MBP.
http://www.apple.com/mightymouse/Traditional optical mice use a red LED to illuminate the area, which is picked up by a photosensor and converted into movement (based on how much the picture changes according to an internal PIC). There are actually some drivers for Windows that let you use an optical mouse as a camera -- very cool!
I think the laser mice use a low-power laser instead of a red LED beam, which makes it work on different types of surfaces where a red LED would otherwise be difficult to sense, and probably improves the accuracy. -
Hai all,
i am trying to insert footnote and its contents for a particular xml element in "Adobe Indesign cs2" thru apple script. But i'm facing some problem. I'm able to select the xml element and its contents and i can insert footnote for that element and i can cut that contents but i couldn't paste this contents in footnote. I have tried with the following code:
tell application "Adobe InDesign CS2"
tell active document
set theRoot to (item 1 of XML elements)
end tell
end tell
myLoopLoop(theRoot)
property myLoLoV : {}
property myHoHoV : {}
on myLoopLoop(myElement)
tell application "Adobe InDesign CS2"
tell active document
set moreElement to every XML element of myElement
repeat with x from 1 to (count of moreElement)
set em1 to item x of moreElement
select em1
if (name of markup tag of em1 is "informalexample") then
set em2 to em1
select text of em2
tell insertion point 1 of em1
set myfootnote to make footnote
end tell
tell application "Adobe InDesign CS2"
set myselection to selection
cut (selection of active document)
end tell
tell application "Adobe InDesign CS2"
tell insertion point 1 of myfootnote
paste into myfootnote
set text of em2 to myfootnote
end tell
end tell
end if
tell me to myLoopLoop(item x of moreElement)
end repeat
end tell
end tell
end myLoopLoop
Can anyone help me out to sort this problem?
Thanks
anbu
I Mac Mac OS X (10.4.8) Intel based Machi all
any help
thanks
anbu -
In FCP you can scrub though a video in the viewer by 1 second intervals by holding shift + arrow key (left=back, right=forward). I really like this shortcut.
Anyone have any script for QT to make it do the same thing?
Apple should add it on the next version. It will be super helpful and better integrated with FCP.
BlakeYes, but in FCP when you hit shift+arrow every time you hit the arrow it scrubs either 1 second forward or 1 backward. This is very helpful if I know I want a clip to start at and exact point and go for exactly 5 (6,9,25) seconds. I have to do this a lot in my work. In QuickTime it just moves you frame by frame, which is perfect for certain situations but I would really like to be able to do what I can do in FCP also.
Blake -
Disable low on battery warning for Mighty Mouse?
How do I do this? This is VERY annoying. I've got more than 20% of battery life left, but OSX keeps telling me I need to change batteries! Also, the menu icon keeps placing itself into the menu! I keep on disabling the bluetooth menu item, but it always comes back!! help!
Depending on where the real issue is, in the system, other options may include
performing an "Archive & Install" then upgrade the system using the latest bits.
Since that gives you an option to move user and account settings over to an
all new System Folder, you would only have to find and reinstall anything not
otherwise up to date. Things to include the latest Flash & Shockwave, or any
parts not automatically put into place through the update to the last OS X step.
There are some details in this Archive and Install, plus update, which may be
tedious; while most should be straightforward. No telling if this would fix the
problem, but it should be able to resolve it.
When did this problem begin? Have you replaced the battery in the mouse
more than once since you bought it? (Is the mouse under warranty? To
hope the problem was only in the mouse itself may be optimistic.)
The non-hack answers may be best; since some hacks may later be a
source of a new problem when later system updates are applied. But
not always. Another thing to try, if the mouse battery issue is recently
developing and no direct cause is known, you could get the last OS X
Combo update and see if reapplying it over the current installation may
help; be sure to start up in SafeBoot, then run Disk Utility's 'repair disk
permissions' then quit Disk Utility, and restart normally to get out of the
SafeBoot mode.
Sometimes just going into a computer in Terminal or Single-user and
revalidate the correct and original settings and then exiting, rebooting
into the OS X GUI, may help correct an issue; while changing nothing
except the symptom. Hard to say if that's an answer in this case.
Hopefully someone with more tweaking experience or an issue similar
to your computer's symptoms will reply here and offer another insight.
Sometimes general system and preventative maintenance may help
resolve some odd issues in the system; to include utilities that can
run scripts for you to perform routines often overlooked. ie: OnyX.
Good luck & happy computing! -
Constant Problems with Apple Wireless Keyboard & Mighty Mouse
My Apple Wireless keyboard constantly loses its connection with my Mac Mini (I have brand new batteries and the latest firmware update) but it is sitting directly in front of it!
I can get it to work when I go to sys. pref., delete the keyboard, and start the set up assistant. However, once I get the keyboard working this way the Mighty Mouse beings to move insanely slow!
Please help me, I bought these two products because they were directly from Apple and I just assumed they would work great with my computer.
ThanksHello craig:
If you are near an Apple store, take both products in - they can test them there. If you are not near a store, call Applecare (since your products are still in the one year warranty). They may replace one or both.
A third possibility (one you do not wish to hear) would be the BT module itself having a problem.
Barry -
Apple Scripting for Microsfot Power Point 2011
Hi,
I am having problem with following apple script. This is working fine with Office 2004 but when i am using office 2011 then on action is changing to «class BCOa». Can any one please help me in this. I will be very thankful
tell application "Microsoft PowerPoint"
set btnAbout to make new command bar control at command bar ¬
"CPS" with properties {control type:control button, button style:button caption}
-- Set button style in "with properties" block
set width of btnAbout to 60
set name of btnAbout to "About"
set *on action* of btnAbout to "cpsHandleAbout"
set tooltip text of btnAbout to "About CPS for PowerPoint"
end tellHm, not sure if this helps, but perhaps... first create this command button by hand...
then run
tell application "Microsoft PowerPoint"
get properties of command bar control "About" of command bar "CPS"
end tell
this returns the properties of this button...
something like:
{class:command bar button, begin group:false, built in:true, name:"About", description text:"", enabled:true, height:22, help context ID: 0, help file:"", id:2520, entry_index:1, left position:674, parameter:"", priority:3, tag:"", tooltip text:"&About", top:324, control type:control button, visible:true, width:28, button face is default:false, face id:23, button state:button state up, button style:button automatic}
If the button uses a build in command you will get to know the id of this command...
e.g. the ID is 23 (open file)
make new command bar control at command bar ¬
"CPS" with properties {id:23}
and this would create such a new button...
But I am not sure who to get a list of all action ids... -
Can anyone make an Apple Script for me?
I'm looking for an Apple Script so that when I press cmd+F1 on my Macbook Pro Retina it turns the brightness to 0 instantly. Rather than having to hold F1 down to make the brightness go down to 0.
Is this something that is even possible?
Thank YouThere is evidently no direct way to do this, but there is an indirect way:
Download an app called SleepDisplay: Download SleepDisplay for Mac - Put your display to sleep instantly. MacUpdate.com
put SleepDisplay in your Applications folder
open Automator.
Select service for type of document
at the top, for service receives, select no input, and after in, any application
in the column on the left, select Utilities
in the next column, drag Launch Application over to the right, and select SleepDisplay for the app
close the window with the red circle in the left upper corner, and give the service a name, like Dark.
go to system preferences > keyboard > shortcuts
select services in the box on the left, and scroll down in the box on the right until you find the service you just created. select that service.
when you select it, a white oval should appear that says "add shortcut". Type in the shortcut you want to use. I couldn't get ⌘F1 to work, but control-option-⌘-D did work. It must be a unique shortcut, not already in use. -
Removing pairing for Mighty Mouse on non-existant computer
Hello people,
I have a Might Mouse and today my Macbook Pro crashed and it looks like the logic board is dead and I might have to get a new computer etc. My Mighty Mouse was paired to it but as I can no longer access the broken Mac I can't unpair the mouse. Is there a way to 'force' unpair a Might Mouse?
Thanks,
HamishBarry, I know the subject can be confusing but I have an Apple wireless keyboard and Magic mouse sitting here paired to 2 Macs. I don't know about other bluetooth devices but the keyboard and mouse don't care. Pairing just tells the Mac to ignore other M/K uids and accept the input from the paired M/K.
Captfred
Also the advice you gave him:
Go to system preferences>bluetooth. Turn the mouse off, highlight the device, delete it, and then restart. Turn the mouse on. The BT setup assistant should open and try to locate the device.
He stated that he now longer has access to that computer.
Message was edited by: captfred -
Apple script for 10.4 - works in OSX but not older
Hi I have a script which I'm using on my current system 10.9 it runs in excel and it goes something like this:
tell application "Microsoft Excel"
-- put the complete set of data into a list of lists (i.e., 2 dimensions -> columns of rows)
tell active sheet to set myData to value of used range
-- recipient email
set myRow1 to 1
set myCol1 to 1
set Address to item {myCol1} of item {myRow1} of myData
-- recipient name
set myCol4 to 4
set rName to item {myCol4} of item {myRow1} of myData
The above is just a small snippet from the script. However I try running this on apple 10.4 apple script and it does not work. I'm trying to save my computer time from have to this minimal task on an older mac I have but I'm experiencing some problems. Does the active sheet not work in apple mac 10.4? What am I missing? Any help would be greatly appreciated.Hi Ohms238,
I found this Apple developer page that talks about changes made in each version of OSX. It will require some work, but you can go through and see what changes are relevant to your script.
But I would actually recommend running pieces of your code separately to see exactly what parts don't work and then rewrite just those portions.
Maybe you are looking for
-
I'm presently using Mozilla 1.7.13, do I have to delete this broswer altogether to install Firefox or with the Firefox overrride the Mozilla 1.7.13? == This happened == Not sure how often
-
Need to create a few objects....
Hi! I need to create a few objects, but do not know how: create Shows in structure create User Exit create Enhancement for Z program create customer screen create OSS notes Bassically I need a t-code for each issue and a few steps that are to be done
-
Folder level Javascript disabled for a user
Hi Gurus, I created a folder level JS, it works fine on all computer here exept on one. On one computer, the javascript's in the pdf are working but the function called in the folder level script is not executed. (when it works on all the others). Th
-
Missing ringtones since iOS update
I am having trouble with two items I purchased on 19 November, two ringtones. They were downloaded initially but since I did an iOS update they have gone. I have done the "report a problem" button and then tried to re-download them by plugging the iP
-
Skype credit automatically purchased
Hi, MaskB, and welcome to the Community, Please check your account dashboard for anything, particularly outgoing calls, which you did not place. These are clues that your account may have been compromised. In the Skype for Windows Desktop version,