Changing iChat status with applescript

I have the basic commands to change the status in my iChat (v 5.0.1):
tell application "iChat"
set status to away (or available)
end tell
When I set my status as "away" everything works fine. The green dot turns red and the status message says away. But when I try to set it as "available" the dot turns back to green but the status message still says away. I have tried the command
set status message to "Available"
and that works but when I try to set it as away, the dot turns red but the status message still says "Available". So I tried the same command to change the status message but with "Away" instead when I wanted to change it to away and it worked, then I reversed everything to available and the status message would change but the dot would stay red. I wouldn't think it would be this hard. Any ideas? Thanks

Seems to be working today. Though it takes a while for the status message to change to available, but it is working

Similar Messages

  • How to process received images in iChat/Messages with Applescript

    Hello!
    I want to process all received photos or videos with Applescript.
    I try this:
    using terms from application "Messages"
              on message received theMessage from theBuddy for theChat
                        if the length of theMessage is 0 then
      -- it means I received a picture or video file, but I can't get the file with Applescript, because theMessage is an empty string and not a file
                                  set theMessage to "<lost photo or video content>"
                        else
      -- it's OK, I just got a text message and I can now save it or display or do something else with it
                        end if
              end message received
    end using terms from
    But if I receive a photo, theMessage is empty.
    The event handlers "on completed file transfer" and "received file transfer invitation" don't work in this case, probably because it is not a file tranfer, but sort of an inline picture.
    I use OS X 10.8.
    Can somebody help me?

    I have a similar question as well. I tried this for you and nothing happened.
    on received file transfer invitation theFileTransfer
    end received file transfer invitation
    I think "completed file transfer" is regarding to the file being transfered to Apple's Server from your computer when a file is sent, but I'm not sure about "received file transfer invitation." Regarding it being an inline file, maybe try using the attachment class.
    attachment n [inh. rich text] : Represents an inline text attachment. This class is used mainly for make commands.
    elements
    contained by rich text, characters, paragraphs, words, attribute runs.
    properties
    file (file, r/o) : The path to the file for the attachment  syn file name

  • Change creation date with Applescript?  Any one?

    Is any one good with writing AppleScript?  I've looked in the Help menu and I don't understand it.
    I have a folder of over 1,000 pictures that has the incorrect "Date Created."   The correct date is actually in the "Date Modified" info for each picture.  I have no idea how this came to be.
    Given that there are so many files in the folder, using the "Touch -t" command in Terminal for each one individually is.. well.. daunting. 
    If any one knows how to write a quick Script to copy the "Date Modified" to the "Date Created" information going through each file in a folder (automated), karma would look good on you. 
    I've been going through page after page of web-search results of "change date created mac app" with no such luck.
    (OS 10.8.2)
    Thanks to any one that can help in any way. 

    Hi,
    touch -t can change the creation date, but it can only set backward, not forward.
    Here is a AppleScript that uses the class NSFileManager from the Foundation framework to change the file's creation date.
    -- this script set the creation date of each file to the file's modification date
    -- When the dialog will appear, just select the files whose creation date is incorrect.
    set pathErr to getFiles()
    if pathErr is not "" then -- if error on some file
      activate
              display dialog "Done, but the creation date of some files have not been changed"
              tell application "TextEdit"
      activate
                        make new document at end of documents with properties {text:("  The creation date of these files have not been changed :" & pathErr)}
      end tell
    else
              display dialog "The creation date of all the files have been changed."
    end if
    on getFiles()
      script o
                        property tFiles : {}
      end script
      set o's tFiles to choose file with multiple selections allowed without invisibles
              set t to ""
              set tError to ""
      set tc to count o's tFiles
      repeat with i from 1 to tc
                        set t to t & " " & quoted form of POSIX path of (item i of o's tFiles)
      if (i mod 250) = 0 or i = tc then -- 250 files sent to the shell to not exceed the limit of characters.
      set r to my setCreationDateToModDate(t)
                                  if r is not "" then set tError to tError & return & r
                                  set t to ""
      end if
      end repeat
      return tError
    end getFiles
    on setCreationDateToModDate(theseFiles)
              do shell script "/usr/bin/env python -c 'import os, sys
    from Foundation import NSFileManager
    df = NSFileManager.defaultManager()
    nbr=len(sys.argv)
    for i in range( 1, nbr ):
       f = sys.argv[i]
       my_dict, error = df.attributesOfItemAtPath_error_(f, None)
       if error is None:
          mDate = my_dict.fileModificationDate()
          cDateDict = {\"NSFileCreationDate\":mDate}
          b, error = df.setAttributes_ofItemAtPath_error_(cDateDict , f, None)
          if not b: print f' " & theseFiles
    end setCreationDateToModDate
    Works on OS X 10.5.x or newer.

  • Can't change creator type with AppleScript

    I'm trying to change the file type and creator type of some files using AppleScript. I've found many examples telling me how to do it. My problem is, that no matter what I try, the creator type does not change. Yes, I can change the file type, but using the same syntax for the creator type fails to make any change. There is no error; rather, the creator type simply remains what it was before.
    I'm doing this on 10.6.8, but I also tried it on 10.8.4 and had the same issue.
    Here's an example script:
    After executing on a single file (for example), the alerts show that the file type has been changed, but the creator type HAS NOT, and remains what it was previously.

    Hello
    Firstly, I have posted wrong handler, which should have been:
    on set_creator_code(f, c)
            string f : POSIX path of target file
            string c : 4-character creator code (or "" to set 0x00000000)
        do shell script "/usr/bin/perl <<'EOF' - " & f's quoted form & " " & c's quoted form & "
    die \"Usage: $0 <file> [<creator code>]\" unless @ARGV > 0;
    my ($f, $c) = @ARGV;
    (my $finfo = qx[xattr -p com.apple.FinderInfo \"$f\" 2>/dev/null]) =~ s/[[:space:]]//og;
    $finfo = \"00\" x 32 unless $finfo;
    my $cccc = unpack('H8', $c . \"\\0\\0\\0\\0\");
    $finfo =~ s/ ^((?:..){4}) ((?:..){4}) /$1$cccc/ox;
    qx[xattr -w -x com.apple.FinderInfo \"$finfo\" \"$f\"];
    EOF"
    end set_creator_code
    * The previous (wrong) handler will create wrong data when there's no com.apple.FinderInfo attribute of the file. Sorry.
    By the way, this handler is written to set creator code to \0\0\0\0 when c = "". So the script below will do what you want for a file.
    set f to choose file
    set_creator_code(f's POSIX path, "")
    As for recursive processing, it is straightforward but the question is how to determine the target files. Processing every file under a given directory tree could be too broad and potentially dangerous. Can we assume the target files are all html and its name extension is .html or .htm? If so, the script below will do what you want:
    set d to choose folder
    set_creator_code_recursively(d's POSIX path, "(html|htm)", "")
    on set_creator_code_recursively(d, e, c)
            string d : POSIX path of target directory
            string e : name extension pattern (case insensitive), e.g., (html|htm|css)
            string c : 4-character creator code (or "" to set 0x00000000)
        do shell script "/usr/bin/perl <<'EOF' - " & d's quoted form & " " & e's quoted form & " " & c's quoted form & "
    die \"Usage: $0 <directory> <name extension pattern> [<creator code>]\" unless @ARGV > 1;
    my ($dir, $ext, $code) = @ARGV;
    local $/=\"\\0\";
    my @ff = map {chomp; $_} qx[find -E \"$dir\" -type f -iregex '.*\\\\.$ext\\$' -print0];
    for my $f (@ff) {
        (my $finfo = qx[xattr -p com.apple.FinderInfo \"$f\" 2>/dev/null]) =~ s/[[:space:]]//og;
        $finfo = \"00\" x 32 unless $finfo;
        my $cccc = unpack('H8', $code . \"\\0\\0\\0\\0\");
        $finfo =~ s/ ^((?:..){4}) ((?:..){4}) /$1$cccc/ox;
        qx[xattr -w -x com.apple.FinderInfo \"$finfo\" \"$f\"];
    EOF"
    end set_creator_code_recursively
    Hope this may help,
    H

  • Can i select displays mirror and change audio output with applescript

    Hi
    I am trying to write an Applescript the will gather and mirror displays and change the audio out setings. Can this be done?

    Hi Keith,
    you can handle the channels like "normal" strings. See the attached picture.
    Hope it helps.
    Mike
    Message Edited by MikeS81 on 07-25-2008 06:46 AM
    Attachments:
    Unbenannt1.PNG ‏6 KB

  • Change MOBI status

    Hi! everyone
    Can anyone tell me How can I change MOBI status on the Backend System ??
    If the transaction with an order/notification is already done, When this status is changed ??
    Thank you very much
    Xiomara

    Hi Xiamory,
    well, at the end we can make it hopefully very simple:
    whenever an order does not show up any longer in the GETLIST handler, then this order will change its status with the next sync from MOBI to .... well, NOT MOBI. So as an example:
    - User A has an order on the PDA.
    Whenever this order is either completed, or the user responsible is not longer user A or some other circumstances that occure to remove this order from the GETLIST handler. So whenever this order is no longer part of the resultset of the GETLIST handler, then this MOBI status is removed when the user syncs the next time.
    A problem occures if the user has done a client reset or got a new device and meanwhile you changed the user responsible or so. Then the MOBI status will ot be deleted that way - cause MI does not know that this order was assigned to this user earlier. In that case you need to simply run the function module I mentioned above.
    So normal scenario: when the user says the order is finished (Ready for Operation), there is a job running in the backend to set the system status to TECO. This can not be done by the user itself on the PDA, cause the user can only change user statusses on the PDA. Well, and if the system status is TECO and the user syncs again, then this order disappears from the device and MOBI is removed.
    Hopefully this makes it alittle more clear.
    Regards,
    Oliver

  • IChat status change not seen by other users

    Hi !
    I have inherited a small network
    I have a Aple Intel Xserve running 10.6.6 which all users are connected to
    This has the iChat service set and running
    All my users are running systems with 10.6.8
    When some users change their status in iChat, this change is NOT being seen by the rest of the users
    I cannot see any errors been highlighted in the logs on the server so assume the problem is with the client.
    I can see nothing in the logs on the client.
    Is there any diagnostic tools for iChat or should I be removing some plists on the client to solve this problem?
    Regards
    Tony

    Hi,
    As it is an X Server and therefore is likely to be iChat Server that you are running (Or another Jabber server) then I would delete to com.apple.ichat.Jabber.plist and then restart the client iChat to refresh the Login.
    Regarding your additional post I do seem to remember another thread where people could change there Available Status (to one with a Message or back to Available  -- actually check this last statement) but not to Away.
    At present as I type the answer to this escapes me.
    This bothers me as I thinks I either had this issue myself or could replicate it.
    AS  they could have the Bonjour List and the Jabber server list showing can you check they have turned Off the Bonjour Option.
    I see you have already posted in the Server Communities as that would have been my next suggestion.
    If this then appears to "solve" it check again with the Bonjour Buddy List showing but check if the setting is to have the same Message for all Buddy lists  (I am not sure that iChat 5 can do this actually).
    Edit See the iChat Preferences > General Section  deselect the Use Same Status for all Accounts
    The client users may find it's about trying to change the Status from a Buddy List that is not the "front" window - particularly if the Bonjour window is open as well and linked though having the same Status message.
    (dismissing a Buddy list using the red button to left only hides the window so some people may have more Buddy List open (Check the window Menu or the App menu > Accounts)
    EDIT.
    removing all the .plists on the client's computer "Might" do it
    Deleting and reinstalling iChat "might"  (I can't remeber what the default for the Use same Status item is so it may just get reset)
    9:57 PM      Friday; March 2, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously
    Message was edited by: Ralph Johns (UK)

  • Trigger event even with Status change or status reason change

    Hi,
    My requirement is to trigger an event if there is a change in status reason. I am looking for the method which currently triggers an event if there is a change in status so that I can modify that. Any pointers please? If I was to do this with change in status which methods/events and classes handle this. I am working on workflows in E-recruitment (HR). many thanks for your help in advance.
    Andy

    Hi Andy - did you get any response to this or were able to figure out?  Our requirement is somewhat comparable (I think) in that when a Publication (of a Posting) gets 'Released', we want to send a couple of emails to various parties.  My intent is to simply create workflows to send the emails, but I cannot get any event to trigger, in order to in turn trigger my wfs.  A Publication is an infotype 5122 and I can probably react to the hrp5122 table entry being created/updated, but I would think there is a way via config instead??
    Keith

  • IChat status changes to running app!

    Hello all,
    Suddenly, iChat (v4.0.8 (619), Leopard 10.5.7) has started changing my status to whatever application I run or switch to. It flips between "Finder", "Safari", "iChat", whatever!
    Has anyone seen this behavior? I didn't "set" it, and can't find anything to un-set it... I thought it might be that I had recently enabled the iChat plugin of Quicksilver, but disabling it didn't fix the problem... I really don't want this "feature"...
    Thanks in advance!

    I have it book marked from some time ago when the issue was more prominent.
    Realistically it did not feature in that many posts and peoples own descriptions of what they see/meant does not always match what others report so matching search can be difficult.
    As you report it has been updated it may have had that feature for some time which is why reports have dropped off.
    Glad you are sorted.
    10:33 PM Tuesday; July 7, 2009
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Picking status in Out. delivery changed to status A after GR post with MB0A

    Hi,
    I am facing an issue in our production system, these is the scenario:
    - Replenishment delivery
    - ZPicking confirmation idoc sucessfully picked the outbound delivery and post the GI.  The material was cut and it was batch splitted.
    - Then it was performed a GR (mov 101)  against a stock transfer order via MB0A.
    - After this GR posted, the status of picking of the parent material of the batch split was changed from status " " (Not relevant) to status "A" (Not yet processed).
    - Also the status at header level was changed.
    Current status of the delivery
    Header Status
    Picking Confirmation --> B
    Total Gds mvt status --> B
    Item Status
    Item 10:
        Pick confirmation --> A
        Goods movt --> B
    We have tried to reverse the GI to generate it again and reset the statuses but it is not possible to do it via VL09 neither MBST, etc.
    Any idea on how to correct this problem?
    Thanks,

    Hi,
    What is the moment type being taken for PGI through idoc?check the moment type definition for its allowable transactions and foe reverse.
    Regards,

  • How to change the status of the system programmatically with Function Module

    I  Was trying to change the status of the notification through STATUS_CHANGE_INTERN function module .  But It is not changing the status of the notification.
    Can any one help to understand what is going wrong ... or any other function module to change status of Customer complaint notification ..

    Hi KK,
    Please can you take clues form the below discussion thread -
    http://scn.sap.com/thread/775169
    Thanks to all original contributors of this thread!!
    NOTE: Please note that the main point explain here is that, if you are willing to change to a status Ex, NOPR, NOCO, etc then you will need to pass on the value 'I0070', 'I0072', etc. I will also go ahead and like to add one more point here to make the language check as well like "EN", 'DE', etc as these statuses are language dependent too.
    Thanks,
    Arijit

  • How do I change my status to online on my iMessages so I can text from my mac?

    I like to text from my Mac when I am using it. For some reason, my iMessages haven't updated for awhile. Before, they would update automatically. My status says I'm offline, but it won't let me change it. It's a gray color and I can't even select anything else. I've tried doing it in my preferences, and it is also gray and won't let me select anything else. Any ideas in how I can fix this?

    Hi,
    Lets be clear.
    If you only have an iMessages account active in Messages on the Mac you will not see if the Account is On line or not.
    The Status Item in the drop down Menu is a hold over from when the App was iChat and works only when an Account that has a Buddy list (even if not displayed) is Enabled (Bonjour, Aim, Jabber, Yahoo).
    As everyone has the Bonjour Account you can enable this for the Status item to change the Status  (not that it effects the iMessages account at all).
    IF the Messages Menu > Preferences item is also greyed out and you cannot access anything you have an issue with the AppleGothic.ttf Font.
    Open the Font Book.
    Scroll to the bottom of the List (several Apple ones are here).
    Highlight the AppleGothic one and use the File Menu > Validate
    Also make sure it is not duplicated (or if it is that one is Turned Off).
    At this point restart the Mac.
    If this does not solve the issue navigate to Hard Drive Name/Library/Fonts
    Highlight the Font and then use the Duplicate option in the Finder's File Menu.
    Delete the original and change the Duplicates name to the original name.
    10:02 pm      Friday; August 1, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • IChat Status Oddity...

    Hi Everyone,
    I'm online with my office (I telecommute) and my office manager mentioned something to me and I want to see if anyone else here has had this happen. On the iChat application at the main office (Version 3.1.9) if I change my status to an Away the status message will change, but the status bubble does not change from green to red.
    I am using version 4.0.8 and the bubbles and messages are working properly on my machine here in my home office.
    Any ideas what might be going wrong here?
    Matt

    Hi,
    At the moment there are about three thread that have reported something along these lines from it being Only ichat that does not seem to show to Buddies the Status change to the "Symptom" you describe that is probably related.
    It seems to coincide with AIM updating the PC version of AIM on the 19th June 2009 (dated for future readers)
    This probably included a server Update which will be at the heart of things.
    8:21 PM Friday; June 26, 2009
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Usage decision follow up action change of status in equipment

    Hello every one, I am having calibration scenerio in my project. All process is running properly but the issue which i am having is that when i am giving usage decision i should get a pop up to change the status of the equipment which is not coming in my case. i have checked followup action whch PM_QM there i have activated 2 Funtion modules one is for automatic TECO of order which is working properly and second is change to status in equipment master which is not working for me. Kindly give some guidance to me on same.
    Regards
    Abhishek

    Helloo,
    Please let me know the equipment type you are using.
    If you are using equipment type other than Q then u may get such type of issues.
    Please try out with equipmetn type Q or P
    Thanks

  • Changing the status of Equipment in a follow up action

    Hi All,
               I have a requirement in which a function module will be triggered for a particular Follow up action.
    In this FM we have to determine the equipment and the Maintenance Order , if both are available , status of the equipment
    should change to 'A' , status of maintenance - order = 'Technically completed' and Maintenance Notification = 'Notification Completed' .
    How can this be done.? I am able to change the status of Maintenance order and notification but can anyone help me in
    determining the equipment and changing its status to 'A'. ?
    Thanks in advance.
    Vasuki

    Hi Gajesh,
                     The process is as follows :
    1) During Calibration of a product,depending on the technician's User decision , 3 follow up actions are created.
    2) Each follow up action has one FM associated with it, which is customised in      SPRO > Display IMG > Quality Management > Quality Inspection > Inspection Lot Completion > Define follow-Up Action .
    3) In the first case ( first Follow up action when the inspection is successful) the first FM is triggered. In this FM we have to perform the following steps :
                                   a) Determine the Maintenance Order and the equipment.
                                   b) Incase both are available, status of equipmnt should be changed to 'A',
                                       Maintenance Order should be changed to 'Technically completed' and
                                       Maintenance Notification to 'Notification Completed' .
    If you need further info pls let me know.
    Thanks,
    Vasuki

Maybe you are looking for

  • HDMI does not recognize TV as display

    HDMI is not recognizing the Vizio TV as addiontal monitor. Here are my computer details. I have tried using my friend's laptop which also has a HDMI port and his computer was able to recognize TV as an external monitor. I have tried everything like,

  • HT204088 How can I check my purchase history, carried out directly by the Apple TV?

    How can I check my purchase history, carried out directly by the Apple TV? I am being charged and can not confirm it is correct.

  • Records query

    i have a data date---------------------------------------------------------id----------------------------amount 7/23/2010 9:51:28 AM------------------------------2------------------------------ 0 7/23/2010 9:51:28 AM------------------------------1---

  • Expense A/c / Balance Sheet A/c

    Hi Gurus, Please clearify my doubt about Expense A/c / Balance Sheet A/c, As per my knowledge  what ever is amount / allowance is paid that will come under Expense A/.c (C), All Deductions and Employer's contributions comes under Balance Sheet A/c (F

  • Dynamic dropdown based on user selection of another dropdown on the same page

    hi all, ok, I have a table which contains use data, a name, and a userID. for the example lets say "Simon Bullen" and my userID is "999". on a form I have, there is a dropdown box, which is dynamic from this table, and allows me to select Simon Bulle