Question about Automator using Spaces.

I don't think this is the right place for this question, but I figured I am probably going to need to write an applescript to do what I want, so I decided to put it here.
I have an automation to open some Word documents on my idisk, then open Dictionary, then open Safari with some tabs. But the problem comes in with spaces. I have Word and Dictionary open on Space 1 and Safari open in Space 3. When the automation ends, I end on Space 3 and would like to know how I add a function to set the focus back to Space 1. It's not all that detrimental to the success of my Automation, but I only use Safari for research and would like to focus to end back on word. I have tried switching which apps open first, but I still end up on the 3rd Space.
My other question is, where can I go for reference to commands in Xcode and AppleScript that deal with Spaces? I love using that function and I have had some ideas about scripts that could help me with them, but I don't even know were I would start with commands.

There are several solutions to this.
The first option would be to send the appropriate key command to switch to space 1. If you've left your preferences as the defaults then you can:
<pre class=command>tell application "System Events" to keystroke "1" using {control down}</pre>
Which will send a Ctrl-1 and switch to space 1.
An alternative, which may be even better, is to activate the application you want to be frontmost:
<pre class=command>tell application "Microsoft Word" to activate</pre>
This should activate the application and switch to that application's space.

Similar Messages

  • Canot erase my macbook air ssd..always create a extended partition with about 5G used space

    I cant erase my air ssd, always create about 5G used extended partition..

    Try booting the fallback kernel, there is a problem with the AHCI driver concerning new Macbooks. When you've booted, add ata_generic to the modules in /etc/mkinitcpio.conf and rebuild the initrd with mkinitcpio -p kernel26.

  • Question about hard drive space used

    If I run OmniDiskSweeper to sweep my 15" G4 laptop hard drive, the total file size calculated is 31.3 GB. Likewise, if I clone the hard drive to an external drive using SuperDuper!, the total size used on the external drive is 31.3 GB.
    However, if I "Get Info" on the laptop hard drive, the Used size listed is 41.9 GB. Likewise, 41.6 GB is listed as "used" in the OmniDiskSweeper Drive List window, as well as in another utility. I suspect that the 41.6 value is picked up from the Finder.
    What could be the reason that Get Info lists the space used on the hard drive as 10 GB larger than the total size of the files?
    1.5 GHZ PowerPC G4   Mac OS X (10.4.9)  
    Dual 2 GHz G5   Mac OS X (10.4.4)  

    Hmm, I think I have a possible answer. I had to download OmniDiskSweeper and open the help from its Help menu to get this answer.
    It says in the help for OmniDiskSweeper:
    "OmniDiskSweeper only displays files that you have access to from the user account you are logged into. Files in restricted folders are not available and their sizes are not included in the total file sizes you see."
    So, if you have other user accounts, then those files won't necessarily be readable and hence not counted in OmniDiskSweeper. There may also be a few system files and folders that might be unreadable and hence not counted. That should be fine since you probably shouldn't be randomly deleting system files.
    I've also noticed that OmniDiskSweeper shows slight variations of total sizes in its different windows, so it's not too precise. That probably comes from the dynamic nature of hard drive use by the computer, and OmniDiskSweeper trying not to use too many cpu cycles updating incessantly. Just guessing on that part though.
    The 10GB is most likely other user accounts or something else not readable from your own account. The Finder lets you know of course, but OmniDiskSweeper only presents to you what you have permission to access. That doesn't necessarily mean you'll also have permission to delete those things.

  • Question about planning using serialization point in transaction S2L

    Hello colleagues!
    Iu2019ve try to implement the supply of production line (supply area) just in sequence. R/3 received dependent requirements and backflushes of serialization point behind target Supply Area from APO.
    Then I got a few dependent demands with indicator u201CXu201D in u201Crequirement is serializedu201D field in transaction S2L. I started the automatic planning  but replenishment proposal was created to cover all dependent demands. from the selection horizon  (with ind. u201CXu201D and without ). But I need to cover dep. demands only with ind. X in u201Crequirement is serializedu201D field. I looked through SAP help and SPRO but I couldnu2019t find helpful information.
    Please, help me to find solution.
    Thanks.
    Ivan.

    Thanks for the feedback. I followed the link but I guess I just don't understand about the extended file system. Is HFS+ the same as Mac OS extended (Journaled).
    Basically, yes.
    I understand that I guess that case sensitive means just that, but what is the difference between journaled and extended? Does it mena that a log file is only saved for the journaled system?
    When a filesystem is journaled, all changes to it are written to a log.
    Do most people just format as Extended without journaled? I am about to reformat my iMac and install Leopard on there and I was wondering if I should format using the extended or the extended with journal?
    Using the journaling option slightly decreases the amount of space on the drive usable by you and increases the chance of recovering data from the drive if a problem occurred. If you want, you can use the Disk Utility to turn it on and off without erasing the drive again.
    (25598)

  • Question about forum use regarding an error I am receiving

    I am looking for an answer to the proper process I should follow when running into issues with Azure Storage. As I don't want to annoy folks with tossing questions into this forum regarding errors I'm running into that are more usage related instead
    of technical in scope.
    For instance this morning I was attempting to view some details about a particular Storage item and was greeted with the following screen in the Azure Portal.
    I was able to accomplish what I needed to (downloading some files out of this particular storage account) within the Manage.WindowsAzure.com site without issue. So this seems to be connected to the portal itself and it's interactions with Storage
    (perhaps). I now have access to the above Storage item via the portal site, but for about 15 minutes I continually received the message above. Even after logging out, clearning cache, trying different browsers etc.
    So my question(s) are; Are these forums the proper place to be posting information about issues we run into? If not what is the preferred method for reporting items like those above and getting help with remediating them in a timely manner?
    I'm happy to put them here, just want to make sure there isn't a better place as I'm new to this.

    Hi Darren,
    You can post your issue with Azure Storage in here. Just make sure that you do not give out any PII data.
    Also, the above portal which you are viewing is still in preview. You may use "manage.windowsazure.com" portal to access your resource.
    Regards,
    Manu

  • Qosmio G40-10Z: Question about energy use in sleepmode

    When I turn my new Qosmio G40-10Z in sleeping mode, with full battery (and off the AC power), I can't start the computer next day. I can only start it up after connecting it to AC power. I get a message windows Vista wasn't closed properly and I am asked to start in normal way or safe mode.
    After starting the battery indicates only 2% power. So, what is using power in sleeping mode? Why isn't the sleep mode not transferred to hibernation state when the battery is almost empty?
    (New notebook, only vista and office installed and only television antenna is connected)

    Hello guys
    At first I just want to write a little bit about theory. Microsoft has implemented standby/Hibernation mode to offer PC users comfortable OS usage and make switch ON/OFF time much shorter.
    According to the definition standby mode should be used for short time (launch, meeting and if you must leave the notebook for few hours). Hibernation mode should be used if you leave the notebook over the night or maybe day or two. In standby mode all data will be written in RAM and to keep them notebook needs power. In Hibernation mode all data will be saved on to HDD and notebook can be switched OFF. In hibernation mode the notebook does not need permanent power supply.
    For me it is really strange that you use standby mode with battery and almost 20 hours. With this I do not want to say that described battery issue is normal but for 20 hours it is logic to use hibernation mode.
    Back to battery issue: only 20 hours under standby mode is really to short. I have tested it with my Tecra and after 5 days I was able to switch ON notebook as usual (only battery power supply.
    In your case I see only two explanations:
    1. Somehow notebook can not switch into standby mode properly and stays running (I do not believe this because you can see if something like this happen)
    2. The battery is defective
    What you should do is to contact Authorized service partner in your country. Make a call and explain the situation. Maybe you will get new battery or they should test it using your battery.
    Sorry for this long posting. I wish you luck and hope you will clarify this issue very soon.
    Bye and good luck!

  • Question about Parallels using Bootcamp partition

    I was about to install XP on bootcamp but i would mainly be using parallels to run XP from the bootcamp partition. What i was wondering is that if i was to make any changes to xp like install a software and create a new folder through parallels, would it reflect on the actual bootcamp partition when i load into the actual XP partition using bootcamp? Basically, do the changes made to windows using parallels carry over to the bootcamp partition given you are using the bootcamp partition on parallels?
    Thanks

    Thanks a lot. While i am at it, if i use the bootcamp partition with Parallels, i cannot suspend the VM right?
    Parallels will behave the same, whether it has its own copy of Windows, or is using that on the Boot Camp partition.
    The only difference is backup. If you use Parallels with Windows in a disk image file (Preferably a sparse bundle), Windows can be backed up with Time Machine. If Windows is on its own partition, Time Machine can't handle it.

  • Quick question about showing drive space

    Hi,
    Just got a quick query about showing remaining drive space on the desktop.
    Before I wiped my Pismo and reinstalled Tiger (bad kernel panic), my hard drive and any other connected drives (pen drive, iPod, iDisk, etc) showed up on my Desktop with the name and drive capacity and remaining space underneath the icon.
    Now I've reinstalled, the drive capacity and remaining space don't show up on the Desktop, and I can't find how to turn it on. I've been through Preferences several times and can't find an obvious switch. Have I missed something? I'm running Tiger 10.4.8 with the machine spec below.
    Thanks in advance,
    Rob Johnson

    Sometimes, for no obvious reason, the Finder can be slow to update. And sometimes it updates instantly. Why? "Only the Shadow knows...." or maybe the Apple programmers.
    Francine
    Francine
    Schwieder

  • Dumb question about automation, but I'm stuck

    The first time you view automation, it asks if you want to view it globally or just that track. I selected just the track, now I need it globally. I can't figure out how to make the automation visible on more than the one track.
    Sorry for the lame question, but I'm stuck.

    I figured how to view the automation track by track, but there doesn't seem to be a total global fix.

  • Questions about Military use

    Hey all, my wife is going on her second deployment to Kosovo and this time we were told they have WIFI in their rooms! Awesome! So through the wonders of ebay I bought us both iSight cams for our macs. They work great with iChat.
    I was wondering if there are any issues we should look for? Or maybe a different messenger service we should have as a back up?
    Anyone have any experience with this?
    Thanks in advance!
    -Stephen

    Hi,
    Like CodLBi has said it is going to be about Firewalls or at least which ports the LAN has open and the Connection speed and the Bandwidth share that are going to effect this the most. (Not to mention any "Security" concerns about apps that can send files and Pics)
    If it is the Miltary that control the LAN and Internet link then they might move on the ports (they have in the Gulf).
    As to Bandwidth that will depend on how many other people are using the LAN At them same time and what they are doing on-line.
    I presume it is not the Mac Pro she is taking
    That could run Windows XP with Boot Camp or Paralleles and would be one way round as AIM on a PC moves it's ports around and that may have provided a solution.
    See the links 5-9 on this section of my page 5.
    10:56 AM Friday; June 29, 2007

  • Dumb newbie question about viewing drive space

    I just upgraded to 10.7.5 from 10.5.  I used to be able to see my drive free space in my window, at the bottom.  Now I can't seem to find it without going to Get Info.  I would really like to see the available space of my connected drives without having to click on Get Info.  Is this possible?  Thank you for any help!!!

    Easy.
    Finder > View menu > "Show Status Bar"

  • Question about Hard drive Space and Logic Pro

    We just installed Logic Pro 7.2 (and Tiger) onto our Dual G4. We have nearly filled the bootup drive, with tonnes of space on our other hard drives (80GB and 100GB). With only ~4 GB left on the startup drive, will this cause problems with Logic Pro? We have more than the recommended RAM, but I was wondering if the hard drive space might be an issue, like with iDVD where you need ~8-10 GB free to burn a DVD.
    I've been considering copying things over from my startup drive to my 80GB drive (which has tiger on it too)and making the 80 GB drive my new startup drive, but it's a bit of work and if I don't need to do it right away I don't want to bother. What is the recommended amount of free hard drive space and memory for Logic Pro to work well? I personally like to have ~10GB free for anything, but that might be tricky at this point. I want to know if I should go through with the hassle of moving things over or wait a bit and see how it goes. I've not ahd a chance to use the program yet, but I'd like to set it up and keep it working smoothly once I start to use it. Any advice or experience from anyone in this department?

    Your best off having at least 25% free space of any hard drive.
    With Logic, It is a good idea (though not necessary) to have your OS and apps on one HD, and your song files and samples (and other files) on another. I would also suggest that you get a hard drive with a speed of at least 7200rpms.

  • Newbie question about automation

    We'd like to begin using Project to automatically forward tasks to the next person in the project.
    Is there a way to do this?
    Thanks for any help you can offer. I appreciate it.
    Wayne Stiles

    No, but I question the need. Any solution of this nature requires the right people with the right training, processes and tools. As soon as too many emails get sent, they get treated as spam and head straight to the bin.
    Best solution is to educate team members on time management and provide details for upcoming tasks for each person at the beginning of the week to support their time management planning.
    Until training and process re in place tools have little chance of succeeding on their own.
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

  • Some questions about the use of the relay

    I connect Relay coil  to the AC power source,but  the switch always act.Is there any suitable relay for ac power ?
    and when I replaced time delay relay in simulation, there was an error.  I don't know how to get the right parameter setting ?
    please help.
    Attachments:
    time_delay relay.png ‏5 KB

    Hi there,
    Thank you for your question. There are two ways to do this, for your origianl circuit you can connect the time delay relay in this way:
    Set the frequency of the source to 1Hz and simulate, then you can see the NC and NO switch back and forth.
    Second method: Instead of using a AC relay, we can use an AC coil which can be found at Electro_Mechanical-->COILS_RELAYS-->ENERGIZING_COIL_AC
    In addition, we can add a normally closed (NC) contact or a normally open(NO) contact spicified for this AC coil(say K1)
    Just type RELAY_CONTACT_NC or RELAY_CONTACT_NO to place the components and then place them under K1.
    Change the Controlling device reference as shown in the picture below,
    Now the AC relay can be constructed in this way.
    For time delay, we can use TIME_DELAY_NC and TIME_DELAY_NO contact
    Hope these two methods help!:-)
    Best,
    Chen_T
    National Instruments

  • Question about design - use patch-panels or switches in racks?

    I'm trying to suggest should I use patch-panels in server 19" racks and use stand-alone telecomm racks for access layer switches
    OR
    should I install 2-3 access layer switches in every server rack?
    First version looks more correct, but than I have to use MUCH MORE cables, organizers etc - all of it eats place in data-center.
    Maybe someone saw some guides for that question?
    Thanks!

    2 or 3 access layer switches in every server rack? Considering typical stand-alone rack switches offer 24 or 48 ports, how many servers per rack or how big are these racks?! Or, were your intended access layer switches only 4 port switches?! (laugh)
    The main disadvantage of rack switches, you either run out of ports or have too many ports. Since server hosts often push bandwidth harder than user hosts, you also have the issue of how much aggregate bandwidth you need to move out of an individual rack. These issues are better addressed by your suggestion of using patch panels from each rack that come to a network switch rack.
    You're correct, all the cables, and their organization, has an expense, but this has to be considered against switch costs. Assuming you intend to use Enterprise switches that offer gig to the servers and perhaps 10 gig uplinks, there's a cost to having extra swiches by deploying to each rack. Also switches per rack would disallow the advantages you might find with a chassis switch in a switch rack. Further, depending on performance to provide, do you want to be limited by uplink bandwidth from each rack, or pay for high bandwidth from each rack that's usually underutilized.
    Besides "looking right", the foregoing is often why there are server rack patch panels, etc.
    One design, that I found interesting, was using the 3750 "stacked" across racks (guess you could do same with newer 2975s).

Maybe you are looking for

  • Windows 8.1 won't boot

    Hi everyone! Im having trouble installing Windows 8.1 Pro (DVD/CD 64bit) Full version, on ny Imac late 2012 (march 2013 when i got it) After doing the basics in Boot camp assisten like downloading the files needed to a new usb, and putting the DVD in

  • Shortcut to widen column doesn't work

    Any shortcut for the "Grow Area" using the function name "Right Size This Column" (Select the vertical equals sign on the bottom right corner of a column and press the Control Key) doesn't work. I restart after setting it. I use "Shift, Option, Comma

  • Invalid sender address

    Hi, I have to send an email, but the sender address may be invalid, in which case I should suppy a "default" valid address. Is it possible to check that address before calling Transport.send(Message m, Address[] a)? Is there any isAddressValid() meth

  • When I attempt to open a pdf it does not open and then it opens a new tab over and over again, how do I stop this?

    When clicking on a pdf file it does not open and then it opens hundreds of tabs. The only way to stop it is to shut off the computer.

  • Apple login screen edit

    Hi can any one tell me how to edit the grey area login screen. so I can leave info their for student/staff rules about system rules. thank you G5 Dual, Xserver, Xraid, G5iMac   Mac OS X (10.4)