Use of Java Swing +Applescript to move and resize Mac OS X windows using

Here is an interesting use of Java on Mac OS X and Applescript to
enable moving and resizing of windows using mouse and keyboard:
[MoveResize tool|http://code.google.com/p/sandipchitalesmacosxstuff/#Move_and_resize_windows_on_Mac_OS_X]
How it works:
The implementation uses Applescript to get the front most window and
it's bounds. It sends the bounds rectangle to a server implemented in
Java over a socket connection. The Java server takes the screen shot
of the full Desktop and uses it as the Image label (a JLabel with
ImageIcon) as the content pane of an undecorated JFrame which has the
same bounds as the Desktop. A JPanel with semitransparent background
and a dark rounded rectangular border is given the same bounds that
were received over the socket. This JPanel is added to the
PALETTE_LAYER of the JFrame's layered pane - which makes it appear
floating in front of the front window. A Mouse and a Key listener
added to the JPanel allow moving and resizing of the JPanel. When the
user types the ENTER key the JFrame is hidden and the new bounds of
the JPanel are sent back to the Applescript over the socket connection
which moves and resizes the front most window.
Enjoy!
Sandip
Edited by: chitale on May 14, 2009 4:12 AM

Copy the /Home/Documents/ folder to the NAS drive. That drive needs to support AFP or you may run into filename problems and/or other file related problems due to filesystem differences.
Once the folder has been moved to the NAS select the folder on the NAS and CTRL- or RIGHT-click. Select Make Alias from the drop down menu. You should now have an alias named "Documents alias." On the Mac put the /Home/Documents/ folder in the Trash but don't delete it. Copy the alias file from the NAS to the /Home/ folder. Rename it to simply "Documents." Double-click on it to be sure it opens the folder on the NAS. If so you can empty the Trash. You're done.

Similar Messages

  • Best way to move photos from iPad to Mac?  I have a card reader foriPad and used it on a recent vacation to put pics on iPad.  How can I now move them to Mac?  Preferably without using iPhoto.

    Best way to move photos from iPad to Mac?  I have a card reader for iPad and used it on a recent vacation to put pics on iPad.  How can I now move them to Mac?  Preferably without using iPhoto.

    With iPhoto or with the Image Capture application.

  • Someone is using faebook to run java script to get data and email from me in windows 8

    someone is using faebook to run java script  to get  data  and  email  from  me in  windows  8

    Is this a developer question?
    Jeff Sanders (MSFT)
    @jsandersrocks - Windows Store Developer Solutions
    @WSDevSol
    Getting Started With Windows Azure Mobile Services development?
    Click here
    Getting Started With Windows Phone or Store app development?
    Click here
    My Team Blog: Windows Store & Phone Developer Solutions
    My Blog: Http Client Protocol Issues (and other fun stuff I support)

  • What is the best way to move and resize layers?

    When I click on a layer to move and resize it in Elements 8 in Windows 7, it disappears.  After I go to Edit/Undo, it reappears.  What should I do?

    I have PSEv.8 and Windows 7, and the Editor works like a charm for me.
    Try the following:
    Open picture 1, duplicate the background layer.
    Open picture 2, make a selection of something in the picture with one of the selection tools, and then go to Edit>copy. This puts the selection on the clipboard.
    Go back to to picture 1, go to Edit>paste, and the selection will be on its own layer
    Use the move tool to position and resize the selection.
    The middle layer can be dragged to the top. Here, this process will obscure visibility of Layer 1, but you can drag the layer structure back, of course.
    http://www.pixentral.com/show.php?picture=1D3wrzjD5r24U8LfdTA1sdUb0zJOY0
    I opened a picture of the house on the lake, copied/pasted the "Slick Rock Divide" sign as per above. The layer structure is represented in the print screen.
    You should note that it is best if the resolution of the picture files is the same, or close to it.

  • Java.exe has generated errors and will be closed by windows

    We are running win2000, with jre 1.4 and getting the following message at a particular point in our program:
    <b>"java.exe has generated errors and will be closed by windows. You will need to restart the program. An error log is being created."</b>
    I have 2 questions:
    1) does anyone know what would cause this?
    2) does anyone know where this log file is generated to?
    many thanks - there are a few duke dollars in it.

    We are getting same error with jdk1.6,
    we can get drwtsn32.log file for user home/documents folder by running with following option. -XX:+ShowMessageBoxOnError
    We got following log message:
    Application exception occurred:
    App: (pid=2288)
    When: 2/5/2008 @ 18:20:44.700
    Exception number: c0000005 (access violation)
    ----> System Information <----
    Computer Name: MAX-20
    User Name: Suresh.A
    Number of Processors: 1
    Processor Type: x86 Family 15 Model 2 Stepping 9
    Windows 2000 Version: 5.0
    Current Build: 2195
    Service Pack: 4
    Current Type: Uniprocessor Free
    Registered Organization: maxem
    Registered Owner: max-20
    has anybody found any solution / tools to identify this kind of issue?
    Thanks
    Nimalan

  • How To: Use FCPX to create iPhone Portrait Movies (and other non-standard formats)

    Goal: Use Final Cut Pro X 10.0.7 to produce a 640x1136 video (iPhone 5 Portrait). You can use these same steps to produce virtually any dimensions you want. My example is for the iPhone 5, in Portrait mode.
    This information is available in various places, but you have to realy work to find it, so I thought I'd post a step-by-step guide here.
    By the way, you might think you could just create a FCPX Project with your desired dimensions, but you can't (at least with 10.0.7). Projects only support certainly dimensions. But there are other ways, as the rest of this post describes:
    1) Create an initial movie with the desired dimensions, to serve as a template. We'll call it "Template.mov". The only thing that matters is the dimensions. It can be in any codec FCPX understands, and virtually any length.
    I'm using a 2 second video shot on my iPhone for the template. You could also create a blank image (.png, whatever) with the proper dimensions, copy and paste it into a new Quick Time Pro 7 window, and Export it using custom settings. There's lots of different ways to do this.
    2) Drop Template.mov into a FCPX event.
    3) Select Template.mov in the Event browser, and select File->Duplicate (or command-D). You probably could just edit "Template.mov", but it's a good idea to save it for reuse.
    3) Change the name of the copied video. I'm using "iPhone Video".
    4) Right-click "iPhone Video" and select "Open in Timeline".
    5) If you made the Template video from a still image, you may need to change the duration (ctrl+D). You don't have to make it very long, but it needs to be longer than 1 frame. A few seconds should be enough.
    6) Use this timeline like you'd use a project's timeline. Drop in new content, trim, transition, etc. There may be things you can't do in it, but I haven't found any yet. I'm guessing Chapters may not work, but I haven't tried them.
    7) Note that when you drop new content into the timeline, it may size funny. That's because the default setting for "Spacial Conform" is "Fit". Simply select the newly-dropped content, and in the Video settings inspector, scroll down to "Spacial Conform" and change it. You could use "Fill", which fills the frame vertically, or "None", which uses the source's original height. Then crop/transform/whatever to get what you want.
    8) When you're ready to render, select "iPhone Video" in the Event browser, then use the "Share" button. You want to use the "Export File" destination, which you may have to add. Pick your codec, and let 'er rip.
    9) When the rendering is done, you should have a video in your desired dimensions.
    That's all there is to it. Hope this helps someone.
    Dan
    PS: Don't ask why someone would want to create an iPod video using FCPX. The point is that you may need to create a video with non-standard  dimensions at some point in time, and this is how to do it.
    PPS: Most of this information came from http://library.creativecow.net/articles/payton_t/FCPX_Custom-Resolution-Timeline s/video-tutorial. I just wrote it down, while I tried to do what the video suggested.

    Instructions for using QuickTime Pro 7 to create a template video with unusual dimensions.
    I suspect that anyone savy enough to be using FCPX has probably already figured out how to do this, either using my technique or another, so there probably isn't a real need for me to post this. For that matter, I may be the only person who cares about this at all. However, while I was trying to learn how to do all of this, I would have really appreciated having all the information in one place, so here goes.
    If you want to create a video with unusual dimensions (like 640x1136) using my steps above, you'll need a "template" video first. Here's an easy way to create one, using any image editor, and QuickTime Pro 7.
    1) Open QuickTime Pro 7 (QTP for short).
    2) From the menu, select File->New Player. You'll get a window with just the bottom portion of the player, i.e. the playback controls.
    3) Using an image editor, create a still image in the desired dimensions. You can use any image editor. It doesn't matter what the image contains (although it will end up showing as a thumbnail in FCPX).
    4) Copy the image to the clipboard.
    5) Switch back to QTP, and paste the image into the new player. Don't worry that there isn't a video window showing - just paste it into the window that has only playback controls. As soon as you do, the video window appears.
    6) Advance to the end of the movie (the short, 1-frame movie), then hold down Command+V (paste) and keep holding it down to paste multiple images in. Watch the time advance. You could, if you want, just hold down Command+V until you get the length you want. But if you want a long video, there's an easier way:
    7) When you reach a few seconds (or whatever duration your patience allows), select all (Command+A) and copy (Command+C). Then hold down Command+V to keep pasting in the longer clips. Wait until you reach a longer duration, then repeat the process. So, for example, 1 second, then 10 seconds, then 1 minute, then 10 minutes, then 1 hour. Or whatever you want.
    8) Save the video however you want. I usually use File->Export with H.264, with Quality set to "Least". Just make sure you don't let it change the dimensions. If you resized the player window, depending on which "save" or "export" method you've chosen, it might default to the resized dimensions, so double check that to make sure.
    That's it. You now have a template video you can use with my previous post(s).
    Dan

  • Can i view movies and pictures stored ona Time Capsule using Apple TV

    Can I view movies and pictures and listen to music that have been stored on a Time Capsule using my Apple TV?

    If you have a Jail Break ATV yes.. if not, no.. as ATV is linked to iTunes.

  • Can i use iport capsule to store movie and play with apple tv, can i use iport time capsule to store movie and play with apple tv?

    Hi
    Can i use iport storage to store movie and play using apple tv?

    hi Alley_Cat
    Thanks, if understand it correctly, apple tv was not able to browse directly content/storage from iport capsule?
    tq

  • Indesign cs6 menu and tool bar disappear between windows using mission control in mountain lion

    heres 2  screen grabs before and after. while navigating between 'spaces' using mission control in mountain lion. issue -  the menu and tools bars disappear - not all of them just parts of them. to get back i hit 'tab' button twice which hides and shows tools. very annoying - does anyone know of a fix or is this another bug which i have to live with. im using a macpro june 2012/running 10.8.4 and 2 screens - left for artboard - right for all tool windows.

    thanks steve - yes that works as does using the tab key - all well....until i move to another 'space' and then come back again.
    for example: my setup is like this - no2 space has indesign project. no3 space has photoshop. so im working on a page within indesign and i need to edit an image- i double click the pic and it opens in photoshop on the other 'space' save the file and go back to indesign to update pic and find menu/tools all over the place - so hit tab twice back to normal -  until i 'move' out of that space into another - photoshop/ mail/ whatever - as i toggle between spaces the indesign menu will always be 'corrupt' for a better word. hope that makes sense.

  • HT3819 I am a teacher. I have an iPhone and iPad for personal use.  I also have an iPod and now an iPad for school use.  Would it be best for me to use home sharing on all 4 devices, or should I split my account and have separate accounts for home & schoo

    My first i device was an iPod touch that I was given for use in my classroom.  Then I got an iPhone for personal use.  Both items are listed under the same username and account.  Since then I now have 2 iPads, one for home and one for work.  I have many apps that are only for work like Math Zombie and Science Facts, and many that are for personal use, like Facebook and YouVersion.  I know that I can synch each device and tell iTunes which apps go on which device.  However at home I use a Mac, and my school computer is a PC.  I am wondering if I should split my account and keep personal separate from work.  Then I can synch all school related devices on the PC and home devices on the Mac.  I realize that there maybe the rare occaision that I might want one app for both accounts.  That's the chance I take on splitting my account.  Are there ay benefits one way or the other?

    Will you be the person paying for apps on both accounts?
    Are you the only person that will use both of the iPads?
    Is there a chance students will be using the work iPad and if so, do you want personal data stored on it?
    If you're the only one using it I'd keep the same account just to have the flexibility of having access to everything on all devices. If your students will be using it or if the school is paying for the school apps I'd keep separate accounts. It all depends on how often you will use school apps from home, and home apps at school. Just some things to consider...

  • TS1292 My pin number had been already use? I bought a $10 card and it appears that has been used. How can i solve this?

    Hi!!
    My pin number had been already use? I bought a $10 pin number and it appears that has been used.
    How can i solve this?
    I already speak with a representative of the provider company and they told me to contact Itunes or apple to solve this.
    Help me please!!
    I cant neither pay with my Master card debit and now with a pin.

    From where did you buy this "PIN"? And did you get an actual card, or did they just send you a number? If you got only a number, then you may well have been defrauded. You'll need to go back to whoever sold you this "PIN" to resolve the problem. Apple to the best of my knowledge does not authorize any company to provide codes rather than a physical card and hence probably cannot help you if you did not get a physical iTunes card or receive a gift certificate issued by the iTunes Store themselves.
    Regards.

  • If I buy Lightroom and Photoshop CC will I be able to use the applications on both my PC and my Mac?

    I have been using Photoshop CS3 for many years and finally decided it was time to upgrade. I use a Mac at home and a PC at work and also have an iPad Air. Are the Lightroom and Photoshop CC Apps compatable with both platforms or would I need to purchase two different memberships? I would obviously not use both at the same time.

    Yes, you can use your two activations  with your membership for either Mac or PC just as I am doing. I have a Macbook and Windows 7 laptop, and both work well.
    Gene

  • Email from iphoto always starts mail app and wants ,mac info - i dont use

    I am trying to send photos from iphoto however it always defaults to mail and wants a .mac logon however i use entourage via exchange for my email. Please help as i have to manually find the pic and attach to entourage i am sure their is a better way.

    In iPhoto preferences, the General (default) tab has a menu near the bottom "Email pictures using" and "Mail" is the default. You can change that to Entourage, and it will then default to Entourage.

  • Why can't I start Mac after installing Windows using boot camp???

    I'm new to Mac.... Have installed Windows 7 through Bootcamp... Well, I tried to at least!!  I can now only get into Windows every time I start the mac up.... What have I done wrong - and how do I fix it!?!

    Flying kiwis wrote:
    Thanks Vinmar.... I can't see anything down on the bottom fit of my screen, apart from the time, date, connectivity, speaker volume etc. am I looking in the wrong place??
    The restart in Mac OS X icon (a grey diamond) will only appear after you've installed the Boot Camp drivers. If you installed the drivers, try clicking on the sideways triangle to show any hidden system tray icons.  You can also use the boot camp control panel to restart in Mac OS X.
    For how many partitions you have, you should be able to see those in the Disk Utility application in Mac OS X or the Disk Management app in Windows.  Be careful not to delete any of them.  If you want to remove a partition, I'd use the Boot Camp Utility to do that.  Nore as well that OS X 10.7 and above add a hidden recovery partition to your drive that you won't see in Disk Utility but will see in the Windows app. 
    Hope this helps.
    Cheers,
    Vinmar

  • How do I Connect both an iBook and Power Mac G5 to Windows XP Pro network?

    I have an existing Windows network at home, with a Motorola Surfborad Cable Modem, Linksys Wired Cable/DSL VPN Router with 5-port 10/100 switch (BEFVP41), Linksys Wireless G Access Point (WAP54G), Linksys Etherfast 10/100 Workgroup Switches (EZXS55W v3) and several connected devices including: two Windows Desktops (wired), a Humax TiVo (wireless), Two (2) SlimDevice Squeezeboxes (wireless), and a Microsoft X-Box game system.
    For some reason, I cannot successfully connect either a Power Mac G5 (wired) or an iBook (wireless) to the newtork and internet. In both cases, if I attempt to connect them, the router does appear to see them, but I can't get connection to the Internet.
    Also, if I try to access either the Router or the WAP via their respective Access URL's: http://10.0.1.1/ & http://10.0.1.2/ nothing happens.
    I have disconnected all the other connected devices and tried to connect them with no results.
    Re-starting the cable modem, router or WAP didn't help.
    If I connect one of the Windows PC's to the same cable I have tried unsuccessfully with the Power Mac, The Windows PC connects to both the Network and Internet immediately!
    Additionally, I have checked out the entire wiring system, which are Cat5E cables. This included re-checking all connectors and testing each wire run. All cables are "straight through" with no opens, shorts or cross0overs.
    I am sure that I am doing something wrong and that there is an "easy fix", but it's beyond my meager knowledge.
    If someone can supply me with "Step by Step", detailed instructions on how to accomplish this, please help me.
    Sincerely,
    Gordy in Reading, MA - USA
    Power Mac G5, iBook & Windows Compat's   Windows XP Pro   Windows XP Pro SP2, Windows Home Network, Comcast Broadband Internet, Linksys Network Harrdware
    Power Mac G5, iBook & Windows Compat's   Mac OS X (10.4)   Windows XP Pro SR2, Windows Home Network
    Power Mac G5, iBook & Windows Compat's   Mac OS X (10.4)   Windows XP Pro SR2, Windows Home Network
    Power Mac G5, iBook & Windows Compat's   Mac OS X (10.4)   Windows XP Pro SR2, Windows Home Network
    Power Mac G5, iBook & Windows Compat's   Mac OS X (10.4)   Windows XP Pro SR2, Windows Home Network

    Hi Gordy,
    Well, that's certainly some setup you've got there.
    Also, if I try to access either the Router or the WAP via their respective Access URL's: http://10.0.1.1/ & http://10.0.1.2/ nothing happens.
    I'm not sure about those URL's. Plug your PowerMac into the router , then launch Safari and type 192.168.1.100 in the address bar it should allow you to access the routers settings via the web-based utility. Please check and see if that much that works and post back.
    Jrsy

Maybe you are looking for

  • How does one remove a WDS type extended network?

    Hi all. I have had a wi-fi network running at home for a couple of years, based on a Time Capsule. Recently I have acquired an iPhone, but it had severe difficulty accessing my wi-fi from my back garden, so I bought myself a second-hand 1st Gen AirPo

  • IPhone 4s cover flow slow down and jerky help

    Hi all i have copied my music over from my backup 3GS to iPhone 4s but in cover flow it is very very jerky and not as smooth at all, my 3gs is way smoother an much better than on the iphone 4s it even has problems loading the covers up as there is a

  • New OS and Blackberry World

    BlackBerry World claims to have new software and that we cant use BlackBerry World after April 3rd, today is 2nd,  without the OS update. But BlackBerry World thing won't launch for people with the new OS. Is it idioticly broken? Or are we not suppos

  • Change iCloud email in iMessage/Facetime

    A few weeks ago I changed my iCloud email address and I haven't found any trouble changing it everywhere EXCEPT for iMessage/Facetime.. When I go on my iPhone to Messages > Send & Receive > Use your Apple ID for iMessage I keep getting the pop up tha

  • White background with swf export

    How can I apply a swf file created in InDesign into my web page without the white background coming with it. I'm using CS6. I'm selecting transparent background when exporting. This is so annoying.