Re: Using cliclick with apple script
Re: Using cliclick with apple script
- Subject: Re: Using cliclick with apple script
- From: Yvan KOENIG <email@hidden>
- Date: Mon, 25 Jul 2016 09:48:20 +0200
> Le 25 juil. 2016 à 03:00, -dan d. <email@hidden> a écrit :
>
>
> Hello,
>
> Attached "cc.txt" is the single text file in the pdf. Is that the info you wanted me to see?
>
> Thanks.
>
>
> …
> XB
Hello
The original PDF was carefully formatted.
Your text file destroy all this formatting which is a bit odd.
Attached is an edited version retaining the most important formatting features making the document readable.
Yvan KOENIG running El Capitan 10.11.6 in French (VALLAURIS, France) lundi 25 juillet 2016 09:48:08
CLICLICK 3.0
Carsten BluÌm Mac Development
WHAT IS CLICLICK?
Cliclick is a Terminal/shell application that emulates keyboard and/or mouse events. This can include moving the mouse, clicking, double-clicking, command- clicking, dragging, pressing Escape and so on. Hence, it is a tool that can help in automating/scripting things that otherwise are more or less unscriptable.
HOW TO USE
Invoke cliclick with switch -h (i.e.: cliclick -h) to see usage information and examples.
But to just give you an idea of how it works, here is a simple demonstration:
cliclick c:28,11 w:500 m:+0,+24 w:1000 kd:alt w:1000 c:. ku:alt
This code will execute the following commands:
⢠c:28,11 Click at position 28/11 (opentheApplemenu)
⢠w:500 Wait500milliseconds
⢠m:+0,+24 Move the mouse 24 pixels down (resulting in 28/35,which is the first menu item, i.e.: âAbout this Macâ)
⢠w:1000 Wait 1000 milliseconds (so you have time to notice that the item is hilited)
⢠kd:alt Press the âaltâ modifier key
⢠w:1000 Wait 1000 milliseconds (to give you the time to notice that âAboutthis Macâ changed to âOpen System Profilerâ)
⢠c:. Click at the current position (â.â is the current mouse position, just as in Terminal, â.â is the current directory. You could also write c:+0,+0)
⢠ku:alt Finally: release the âaltâ key
When running this example, you will have to prefix it with the full path (should be /Volumes/cliclick), if you have not installed cliclick yet.
INSTALLATION
Put cliclick anywhere you like. In my eyes the best (i.e.: most common) place would be
/usr/local/bin. Additionally, you will want to make sure that this path is in your $PATH environment variable, so that you can use cliclick without specifying the full path. (If you have no idea what $PATH is, you should probably familiarize yourself with shell basics. A web search for something like âbash profile pathâ should be sufficient to find plenty of resources.)
WHAT IS NEW IN VERSION 3.0?
⢠Implemented the most requested feature: typing (almost) arbitrary text using cliclick.
⢠Example: cliclick t:'Wow, it works!'
cliclick 3.0 was released on 09/15/2014.
Release notes for previous versions can be found on the website
PRICE
Cliclick is free. However, if you appreciate it and would like to send a âThank youâ,
there are a number of ways to do that.
Please take a look at my website for more information or simply invoke cliclick -d at the shell.
CONTACT / FEEDBACK
Carsten BluÌm
E-Mail: email@hidden
cliclick Homepage
cliclick project at GitHub
DISCLAIMER
This application is provided as-is. Support is not included. Use this software at your own risk. If for some obscure reason any damage or data loss may arise from using it (which in my opinion is nearly impossible), it is nobody elseâs problem than yours.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden