AppleScript faster

Hello

I create a script that transform a photo in the Gcode

Unfortunately, it works very slowly. I think that especially happens in colon 'close ':

When the script retrieve all pixels of different colors (marked as 'A PROBLEM')

and when the script tries to "wear out" sprites to pixel (marked as 'MAIN PROBLEM')

any ideas to make it faster?

thisFile to Choose file with guest "" ВЫБЕРИ ФАЙЛ ДЛЯ ОБРАБОТКИ В G - КОД ".

say application "Imagine the Photo.

with timeout of (720 * 60) seconds

the value thisImporter for import graphics thisFile

if the component error of thisImporter is not equal to 0 then

thisImporter close

display the dialog box "Not an image file that quicktime recognizes."

return

end if

the value {x, y, xDim, yDim} to the limits natural of thisImporter

define thisDocument to make new document window properties {size: {xDim, yDim}}

the value the destination of thisImporter to thisDocument drawing

thisImporter trace

thisImporter close

-The section which follows should be replaced according to the pixel value class

the value pixelValueRect to {x, y, xDim, yDim}

game of pix_am to (xDim * yDim) whole -

game of pixelValues1 for (get the pixel values of thisDocument with properties {class of pixel values:pixel in the rectangle, rectangle boundaries: pixelValueRect}) as list

thisDocument close

-pixelValues2 the value pixelValues1 as a list

end timeout

end say

the value pix_am to xDim * yDim

the value scany_col to {}

the value pixelValues2 to a reference to pixelValues1

Repeat 94 times

the value a_col to some point of the point 2 of pixelValues2 - взял случайный пиксель

If scany_col not contain of {a_col} and then copy a_col to the end of scany_col

end Repeat

the value ttt to count elements of scany_col

display the dialog box ("Нашел цветов:" & TT "") buttons ' "give up after 1

game a_c for 1

set b_c to {}

Ttt repeat them time

the value t_r to point a_c of scany_col - t_r это вытащенный цвет с его положением в списке а_с конкретно

copy "(Позиции На" & a_c & "" & (((point 1 de t_r comme chaîne) / 256) integer ) & "," & (((point 2 de t_r comme chaîne) / 256) integer ) & ',' & (((point 3 de t_r comme chaîne) / 256) integer ) & "'") "& back to the end of b_c

the value a_c for a_c + 1

end Repeat

set bb_c to {}

use Scripting additions

display the dialog buttons ( as textb_c) {"оставляю", "меняю очередность"} default button 1 - give up after 3

copy the result as list to {button_res}

If button_res is "меняю очередность" then

set msg to "ввести номера камор по указанному через запятую songs" & b_c as text

delimAnswer the value of text returned of (display dialog box of the default msg answer "")

the value {TID, delimiters of point for the AppleScript text} to {Delimiters to point to the text of the AppleScript ","}

the value dialogList for text elements of delimAnswer

the value {TID, delimiters of point for the AppleScript text} to {Return of AppleScript text delimiters point}

-the text value of the point AppleScript delimiters TID

the value aa_bb to 1

Repeat County elements of scany_col time

the value nr_1 to the point aa_bb of dialogList

the value nr_2 to the point nr_1 of scany_col

copy nr_2 to the end of bb_c

the value aa_bb to the aa_bb + 1

end Repeat

the value scany_col to the bb_c

end if

game abcd to 1

the value of a2 )

Ttt repeat them time

copy {point abcd of scany_col} to le end d’a2

ABCD set to abcd + 1

end Repeat

game a_c for 1

the value scany_col_1 to the scany_col

with timeout of (720 * 60) seconds

Pix_am repeat them time

game r_d to 0

Ttt repeat them time -a PROBLEM

r_d put to r_d + 1

if point r_d scany_col is (point of point 2 of the pixelValues2 a_c) then

copy point a_c from point 1 of pixelValues2 at the end of point r_d a2-r_d point of scany_col_1

output Repeat

end if

end Repeat

the value a_c for a_c + 1 - переход на следущий пиксел

end Repeat

end timeout

set g to {}

game g_c to 1

the value Diamonds to {{10, {3, 0}, {4, 0}, {5, 0}, {6, 0}, {2, 1}, {3, 1}, {4, 1}, {5, 1}, {6, 1}, {7, 1}, {1, 2}, {2, 2}, {3, 2}, {4, 2}, {5, 2}, {6, 2}, {7, 2}, {8, 2}, {0, 3}, {1, 3}, {2, 3}, {3, 3}, {4, 3}, {5, 3}, {6, 3}, {7, 3}, {8, 3}, {9, 3}, {0, 4}}} {1, 4}, {2, 4}, {3, 4}, {4, 4}, {5, 4}, {6, 4}, {7, 4}, {8, 4}, {9, 4}, {0, 5}, {1, 5}, {2, 5}, {3, 5}, {4, 5}, {5, 5}, {6, 5}, {7, 5}, {8, 5}, {9, 5}, {0, 6}, {1, 6}, {2, 6}, {3, 6}, {4, 6}, {5, 6}, {6, 6}, {7, 6}, {8: 6}, {9, 6}, {1: 7}, {2 7} {{3, 7}, {4, 7}, {5, 7}, {6, 7}, {7, 7}, {8, 7}, {2: 8}, {3, 8}, {4, 8}, {5, 8}, {6, 8}, {7, 8}, {3, 9}, {4, 9}, {5, 9}, {6, 9}}, {9, {3, 0}, {4, 0}, {5, 0}, {1, 1}, {2, 1}, {3, 1}, {4, 1}, {5, 1}, {6, 1}, {7, 1}, {1, 2}, {2, 2}, {3, 2}, {4-2}} {5, 2}, {6, 2}, {7, 2}, {0, 3}, {1, 3}, {2, 3}, {3, 3}, {4, 3}, {5, 3}, {6, 3}, {7, 3}, {8, 3}, {0, 4} {1, 4}, {2, 4}, {3, 4}, {4, 4}, {5, 4}, {6, 4}, {7, 4}, {8, 4}, {0, 5}, {1, 5}, {2, 5}, {3, 5}, {4, 5}, {5, 5}, {6, 5}, {7, 5}, {8, 5} {1 {, 6}, {2, 6}, {3, 6}, {4, 6}, {5, 6}, {6, 6}, {7, 6}, {1: 7}, {2, 7}, {3, 7}, {4, 7}, {5, 7}, {6, 7}, {7, 7}, {3, 8}, {4, 8}, {5, 8}}, {8, {2, 0}, {3, 0}, {4, 0}, {5, 0}, {1, 1}, {2, 1}, {3, 1}, {4, 1}, {5, 1}, {6, 1}, {0, 2}, {1, 2}, {2, 2}, {3} 2}, {4, 2}, {5, 2}, {6, 2}, {7, 2}, {0, 3}, {1, 3}, {2, 3}, {3, 3}, {4, 3}, {5, 3}, {6, 3}, {7, 3}, {0, 4} {1, 4}, {2, 4}, {3, 4}, {4, 4}, {5, 4}, {6, 4}, {7, 4}, {0, 5}, {1, 5}, {2, 5}, {3, 5}, {4, 5}, {5, 5}, {6, 5}, {7, 5}, {1: 6}, {2 6} {{3, 6}, {4, 6}, {5, 6}, {6, 6}, {2, 7}, {3, 7}, {4, 7}, {5, 7}}, {7 {2, 0}, {3, 0}, {4, 0}, {1, 1}, {2, 1}, {3, 1}, {4, 1}, {5, 1}, {0, 2}, {1, 2}, {2, 2}, {3, 2}, {4, 2}, {5, 2}, {6, 2}, {0, 3}, {1, 3}, {2, 3}, {3, 3}, {4, 3}, {5, 3}, {6-3}} {{0, 4}, {1, 4}, {2, 4}, {3, 4}, {4, 4}, {5, 4}, {6, 4} {1, 5}, {2, 5}, {3, 5}, {4, 5}, {5, 5}, {2, 6}, {3, 6}, {4, 6}}, {6, {1, 0}, {2, 0}, {3, 0}, {4, 0}, {0, 1}, {1, 1}, {2, 1}, {3, 1}, {4, 1}, {5, 1}, {0, 2}, {1, 2}, {2, 2}, {3, 2}, {4-2}} {{5, 2}, {0, 3}, {1, 3}, {2, 3}, {3, 3}, {4, 3}, {5, 3}, {0, 4} {1, 4}, {2, 4}, {3, 4}, {4, 4}, {5, 4}, {1, 5}, {2, 5}, {3, 5}, {4, 5}}, {5, {1, 0}, {2, 0}, {3, 0}, {0, 1}, {1, 1}, {2, 1}, {3, 1}, {4, 1}, {0, 2}, {1, 2}, {2, 2}, {3, 2}, {4-2}} {{, {0, 3}, {1, 3}, {2, 3}, {3, 3}, {4, 3}, {1, 4}, {2, 4}, {3, 4}}, {4, {1, 0}, {2, 0}, {0, 1}, {1, 1}, {2, 1}, {3, 1}, {0, 2}, {1, 2}, {2, 2}, {3, 2}, {1, 3}, {2, 3}}, {3, {1, 0}, {0, 1}, {1, 1}, {2, 1}, {1, 2}}}

game kist to "G01 Z0" & return & "G01 Z70" & return

with timeout of (720 * 60) seconds

Repeat County elements of a2 times

define au point g_c of a2

set d to {}

the value a_vr to {}

the value flagg to 1

game t for 2

copy (((«G21» & retour & «() ' & 'R' & (((point 1 dele de point 1 d'un) / 256) integer )) & "G" & (((point 2 dele de point 1 d'un) / 256) integer ) ") & 'B' & (((point 3 dele de point 1 d'un) / 256) integer )) &"). "& return &"Z70"& return & 'M00' & return to the end of d

b the value to 1

Repeat County elements of Diams times - MAIN PROBLEM

Repeat (number of items a.) / (number of points of point b of diamonds) * 0.7 times

the value a_some at some point a

the value x to a point 1 of the a_some

y set to the point 2 of a_some

define kfc to the point 1 of the point b of diamonds

If a contains {(x + kfc) & (y + (kfc / 2) integer )} and a contains whole {(x + (kfc/2)) & (y + kfc)} and a contains whole {(x + (kfc/2)) & (y)} and a contains whole {(x + (kfc/2)) & (y + (kfc / 2) integer )} and a contains {x & y} then

the value d to d. kfc & "Диаметром" & x & "pix" & ", Y" & y тут - надо сразу G код писать с формулой окружности - проверку надо откорректировать, порет косяки

Repeat with ix for 2 for the County a

if point b of diamonds contains {((point 1 dele de point ix d'un) - x) & ((point 2 of point ix a) y)} then

the value flagg to flagg + 1

on the other

copy point ix of an to the end of a_vr

end if

If flagg = ((count elements from the point of diamonds b) - 1) then exit repeat

end Repeat

define an a_vr to

end if

the value of t to t + 1

end Repeat

the value of b to b + 1

g_c put to g_c + 1

copie d à la fin du g

end Repeat

end Repeat

end timeout

say application "TextEdit".

say (do in new document)

the value sa text to g as text - like "class utf8".

end say

end say

display the dialog box Buttons ("G-KODE как файл лежит открыт в текстовом редакторе") ' "give up after 1 - end timeout

bb_c

AppleScript is quite slow in a first time - about it all another scripting language (Ruby, Python, etc.) will be faster, not to mention something compiled as C or Objective-C.

There is a quirk AppleScript that obtaining or defining the elements in a list is accelerated if the list variable is referenced instead of being used directly, then you can try it.  For example:

on doSomething(bigList)
  script _script -- temporary script object
    property _list : bigList -- with a property set to the passed list
  end script

  set numItems to (count bigList)
  repeat with n from 1 to numItems
    get item n of _script's _list -- reference the script object's property
  end repeat
end doSomething

Tags: Mac OS & System Software

Similar Questions

  • Is faster than javascript applescript?

    I wrote quite a few applescripts and have had many scripts that run very slowly.

    The script would go faster if I translate it in javascript?

    If javascripts are faster than the applescripts, I'd have an extra motivation to learn javascript :-)

    Hi Luke,.

    In my view, that the script language has no serious impact on speed as long as your script mainly focuses on DOM operations, which is usually the case.

    Indeed, no matter how quickly vs AppleScript JS codes are interpreted and translated into orders DOM InDesign, execution time depends on the common subsystem.

    However, the Scripting Guys have reported a few cases where the scripting language seems to count. A well-known example is which clause of AppleScript that targets the DOM in a way that has no direct equivalent in JS. In this case, we can assume that any solution based on the JS will run more slowly.

    Now, what about the DOM routines, such as processing very wide range trie, calculating long strings or operated on a lot of floating-point numbers? It's an open question for me, as I have no skill in AppleScript. But my intuition leads me to believe that JS is a better choice for these tasks.

    @+

    Marc

  • AppleScript for numbers

    Hello

    I have an AppleScript script that helps me generate a price list. Everything works fine but since an update, it behaves a little different.

    When I started to use the script, it was very fast, staying in a datasheet, but since I updated my Mac (cannot say if it is a update or update OS X), it then passes between the two sheets in the script, which makes it really slow.

    Anyone experienced this? Anyone who has a solution?

    This is the script in question:

    Tell application "Numbers."

    activate

    tell document before

    say the sheet "Prislista.

    tell the table 1

    the bredd_count value (count the columns)

    the hojd_count value (count lines)

    bredd_start value 2 - to allow the column 1 header

    the hojd_start value 3 - to allow 2 header lines

    Repeat with next_bredd of bredd_start to bredd_count

    Repeat with next_hojd of hojd_start of (hojd_count - 1)-to note in the bottom row

    the value hojd value of cell line next_hojd 1

    a value of cell 2 of column next_bredd bredd have thong

    If bredd contains "-" then the value text-3 thru-1 of bredd bredd

    Define bredd to (bredd as integer)

    the value taken my get_price (bredd, hojd)

    value of the cell line next_hojd in PRI next_bredd

    end repeat

    end repeat

    tell the end

    tell the end

    tell the end

    display alert "list price recalculated!" give up after 20

    tell the end

    on get_price (bredd, hojd)

    Tell application "Numbers."

    tell document 1

    say the sheet "taken."

    tell the table 'matt '.

    the value of cell "A2" bredd

    the value of cell "B2" hojd

    tell the end

    has taken value of cell "B3" from "Taken" table

    tell the end

    tell the end

    tell the end

    end get_price

    Could you post a screenshot of the two tables?  That would make the problem easier to diagnose.

    Wayne explains how to post a screenshot here.

    SG

  • I need help to create an AppleScript to autoclicking.

    I just started using AppleScript, so there is still a lot of things I don't know. Currently, I'm doing a script where I can click in an infinite loop / repeat. I received this understood part and now I want to step up a notch by making a condition where in when I right click with my mouse, I'll be able to enable / disable this script. Or even shut down the loop with a right click. In addition, I would also add a bonus dialog box once I finished the script by right-clicking.

    Here's my working process.

    say application "System events".

    -a loop (# repeat, repeat times)

    repeat 10 times

    -trigger system event are asked to use the button code 87 (left click on the mouse)

    say application 'System events' in the key code 87

    delay 1

    end Repeat

    end say



    -Right click

    say application 'System events' to code key of {command down} 87

    -closing of the script

    display the dialog box "Do you want to exit this script?" buttons {"Exit", "Continue"} default button 1

    If result = {return button: "Exit"} then

    return

    end if


    The upper part of the script, this is what I mentioned the first where I get an infinite loop to the left, click the mouse button. The two scripts from the bottom is what I would like to integrate the above script to get the result I want. An infinite loop with condition (right click) to disable the script and a message if poster after the script has stopped.

    Hi Cloud4846. One option is to create a small utility to detect a mouse button for use in an AppleScript script. Copy and paste the following in a text editor Swift code as text Sublime and record your desktop with a file extension .swift using a name such as mouse.swift:

    import of Foundation

    import AppKit

    TranslateButtonState(buttonState: Int)-> {String Func

    If (buttonState == 1 < < 0) {return "left" ;}

    If (buttonState == 1 < < 1) {return 'right' ;}

    go back to 'none '.

    }

    buttonState var = NSEvent.pressedMouseButtons)

    Print (TranslateButtonState (ButtonState))

    With Xcode installed, compile the code above with the Swift compiler in Terminal using the following command, which places the binary file in usr:

    xcrun - sdk macosx swiftc ~/Desktop/mouse.swift o/usr/local/bin/mouse

    You can test the utility in a Terminal before control of the mouse with a delay and press left mouse button to the right:

    sleep 1; mouse

    Output returned is one of the 'left', 'right' or 'none '. The utility also works with a finger or two mechanical depression of a trackpad for the primary and the secondary finger click respectively.

    You can use the utility in an AppleScript script to display a dialog box message when a mouse button is released, in this example the right button of the mouse. Keep in mind it's because of the single-threaded nature AppleScript and that the 'do shell script' in the loop with delay, is really only practical with time short longer times require holding down the mouse button longer:

    Tell application "system events".

    Repeat 10 times

    the mouseDown value (the shell script ' / usr/local/bin/mouse ")

    If mouseDown = "right" then

    button code 87

    dialogue box "Do you want to exit this script?" the default button buttons {'Exit', 'Continue'} 1

    If result = {return button: "Exit"} then

    return

    end if

    on the other

    delay 0.5

    button code 87

    delay 0.5

    end if

    end repeat

    tell the end

    Instead of using a mouse button down event to trigger a dialog box, you can use a key as a modifier key. Copy and paste the code Swift following in a text editor and save it to your desktop with a file extension .swift using a name such as modKeys.swift:

    import of Foundation

    import AppKit

    TranslateModifierFlags(modifierFlags: NSEventModifierFlags)-> {String Func

    Let rawModifierFlags = modifierFlags.rawValue

    var pressedButtons = [System.Security.Permissions.SecurityPermission

    If ((rawModifierFlags & NSEventModifierFlags.ControlKeyMask.rawValue)! = 0) {pressedButtons.append ("Control")}

    If ((rawModifierFlags & NSEventModifierFlags.AlternateKeyMask.rawValue)! = 0) {pressedButtons.append ("Option")}

    If ((rawModifierFlags & NSEventModifierFlags.ShiftKeyMask.rawValue)! = 0) {pressedButtons.append ("Shift")}

    If ((rawModifierFlags & NSEventModifierFlags.CommandKeyMask.rawValue)! = 0) {pressedButtons.append ("Command")}

    If (pressedButtons.count > 0) {}

    return pressedButtons.joinWithSeparator("")

    }

    go back to 'none '.

    }

    var modifierFlags = NSEvent.modifierFlags)

    Print ((modifierFlags) TranslateModifierFlags)

    With Xcode installed, compile the code above with the Swift compiler in Terminal using the following command, which places the binary file in usr:

    xcrun - sdk macosx swiftc ~/Desktop/modKeys.swift o/usr/local/bin/modKeys

    You can test the utility in a Terminal before control of the mouse with a delay and pressing one of the four control, Option, shift, and control modifier keys individually or in combination:

    sleep 1; modKeys

    Output returned is one or more of 'Control', 'Option', 'Shift' and 'order '. An example of the usefulness and the SHIFT key, used in an Applescript script:

    Tell application "system events".

    Repeat 10 times

    the keyDown value (the shell script ' / usr/local/bin/modKeys ")

    If keyDown = 'Shift' then

    button code 87

    dialogue box "Do you want to exit this script?" the default button buttons {'Exit', 'Continue'} 1

    If result = {return button: "Exit"} then

    return

    end if

    on the other

    delay 0.5

    button code 87

    delay 0.5

    end if

    end repeat

    tell the end

    More appropriate to use modifier keys are shift and Option.

    Tested with OS X Yosemite 10.10.5, editor Script 2.7, 2.4, Xcode 7.2.1 AppleScript

    AppKit framework reference > NSEvent Class Reference

    The fast programming language

    Introduction to AppleScript Language Guide

  • AppleScript, XMP and custom namespaces

    Having had to change gears of JS to solve a problem of integration of database, I could use help specific XMP out of my files HAVE via AppleScript. It extracts the forums InDesign... does not work for illustrator (gives the error "expected expression but found property")

    say links

    the value of InhouseClient for namespace 'http://ns.Inhouse.com/Inhouse' link 'customer xmp property path '.

    tell the end

    I know that I can throw the entire string of XMP with:

    the XMPStringData value (get the string XMP in the active document)

    but I prefer to do something like the first example. If I was in JS, I would use

    property var = myXmp.getProperty (propertyuri, propertyname, XMPConst.STRING);

    The syntax seems close enough to the first AppleScript, but why it chokes on 'ownership' in an 'Illustrator to say"when working inside a"tell InDesign? "

    Oh my Lord working with shell's FAST!

    Work on a remote server, a small applescript to call a shell script grabs the path for the files 20 000 + 2000 + jobs in a little more than 5 minutes to interfere in my FMPro database. The only applescript would take 30 hours and has been getting interrupted by the Server timeouts.

    'Mdfind"Marc did not work for me, probably because I was failing at a different shell script language.  What works for me:

    fileString value (the script 'find' shell & city form of searchPath & ""-maxdepth 1 - iname * .ai "")

    who writes a list to disable the paths to the files found in the searchPath passed to the shell script.

    Next step is to add a subroutine to search for xmp use EXIFTool... the first tests tell me that this is the easiest part.

    Signed,

    They get GUI Addict.

  • What can I do if the script runs faster than the network?

    I wrote a script between applications moving to InDesign, where he begins to AppleScript, to Photoshop, which AppleScript runs a JavaScript script to perform various tasks.

    It works beautifully on my laptop at home where I do my development. Yesterday, using me as a Guinea pig, I tried it in the office.

    On the third round, I was horrified to see the ExtendScript Toolkit pop up with an error message (about as welcome to see an AppleScript script, asking the user to open the Script Editor and fix a script).

    The error message was that app.bringToFront (); was not a valid function.

    This was the case in InDesign, which has a different activation function, and I realized that, even if my AppleScript called Photoshop activate, I was still in InDesign.

    The app.bringToFront JavaScript was so called because I had joined my code in the model of Tranberry.

    So I pressed the button stop on ExtendScript, returned to InDesign and represented the script. This time he worked as usual.

    Occasionally on our network we spend some time beachball - watch as a communication happens in the background. So I guess the time wherever the error was thrown was on one of these downturns in the network.

    The passage of InDesign, Photoshop is not happening pretty fast, but the script has run and has issued an order Photoshop JavaScript while I was still in InDesign.

    In AppleScript this unhappy communication with users can be avoided using blocks '... try error'.

    Is there an equivalent of the error handling in JavaScript that would allow me to avoid being tossed in the ExtendScript Toolkit and give them a friendly message to apologize, explaining what had happened and inviting them to try again?

    JavaScript has try/catch blocks

    try {}

    app.bringToFront ();

    } catch (e) {}

    error handling code

    }

    Or you might be able to use an if statement

    If (app == 'photoshop') {}

    app.bringToFront ();

    } else {}

    app handle not photoshop

    }

  • My iPhone 6 installed 10.0.2 stops when it gets to 40% of autonomy.  In addition, it seems to pass power WAY to fast with the new software.  Does anyone else have this problem?

    My iPhone 6 installed 10.0.2 stops when it gets to 40% of autonomy.  In addition, it seems to pass power WAY to fast with the new software.  Does anyone else have this problem?

    Hello brooksm549,
    Thank you for using communities of Apple Support.

    I got your message which, since updating your iPhone 6 to iOS 10.0.2 your iPhone stops when it is 40% and the power to empty very quickly. I understand your concern with the iPhone turn off and drains the battery. I recommend you to review the use of the battery to see what app contributes more to the battery drain. The following article will provide you with steps on how to check the use of the battery:

    On the use of the battery on your iPhone, iPad and iPod touch

    When you know about the soft uses more battery, you can change your settings in order to optimize the battery life:

    Maximize the life of the battery and battery life

    Best regards.

  • The AppleScript get cell numbers active

    I want to create a script that checks the active cell or column better / assets to the keyboard layout for the automatic switch from English to Korea and visa versa...

    I can't find it anywhere... where to get the active column? Help, please!

    AppleScript to affect the current selection (if the selection is a single cell, an entire column or some other range) is as follows:

    say application "Numbers".

    say front worksheet active document

    say ( class is worn) fromfirst table whose selection range

    say a selection range

    -do things here, for example:

    -the value of background color "red".

    -value of the first cell value v

    end say

    end say

    end say

    end say

    However, from keyboard, I don't know why you should check the specific range in number.  You may want to watch v (value in, say, the first cell) to check if it is in Korean or in another language?

    SG

  • Contact ID battery fast draining iPhone 5s does not

    5s fast drainage and Touch ID sinice 10.0.2 iOS iPhone battery update does not

    Restarted the iPhone since the update yet?

    1. Press and hold the sleep/wake button until the Red slider appears.
    2. Drag the slider to turn off your device completely off.
    3. Once the device turns off, press and hold the sleep/wake button again until you see the Apple logo.
  • Battery draining fast - after Mac OS Sierra update

    Hi, I'm not able to understand any cause yet, but my battery is dying real fast for the last few days since I've upgraded to Mac OS Sierra. I could use my mac almost for 5-6 hours on a single charge, but now his sentence stay for 2 to 2.5 hours. Everyone knows a similar problem? I was check activity monitor to see if any batch of your specific application, but I don't see anything different from what I had previously. Thoughts?

    Open the activity monitor and go to the tab CPU make sure the unider view all processes is check. What is using CPU?

    Apps can affect the performance of Mac, battery, temperature and fan activity - Apple Support

    This is the Office Mac Pro forum. I asked that your post moved to the forum of laptop MacBook Pro or another appropriate forum.

  • Apple ios 10.0.2 update battery draining fast.

    battery drain fast on new update ios 10.0.2 - does anyone know how to fix this?

    IF you go to Preferences-> privacy-> Location Services-> System Services, you will see a guilty (if you have the status bar enabled). Calibration compass and alert Google Latitude based constantly turn on and off. This

    is a brand new iPhone 7 I have autonomy on 10.0.1 - I usually gained by during 48 hours between charges with moderate use (a few hrs site web surfing and using 3rd party email). Even with workarounds above watching my battery meter down 3 percent as I type this. I did an ipdate OTA. I will be heading home downgrade ipsw. I just lost confidence in apples QA software. Personal Apple who may read this, if you're going to harass us with daily updates OTA can you please make the tests more extensive before pushing minor point releases? This really put a huge hole in my independence and trust in the quality of the Apple. I can understand the complexity of the myriad of settings ios and the 3rd party software interactions, but perhaps more test time is required between releases one-time dowry...

  • Mobile use goes fast iOS 10

    It's all good in iOS 10 in my iPhone 6 s more. Yet, mobile usage drives really quickly without help strongly.

    I always use wifi and disable the function of the mobile use of apps, iCloud backup, etc. that can use a large amount of mobile data. Most of the time I'm on wifi environment and mobile data died. When I'm in the open air, I have to use mobile data, mobile data uses very fast even if I'm not using very shortly. I have to be turned off whenever the mobile data or otherwise all my mobile data will be used to the top.

    Someone has encountered this situation?

    Go to settings > cell and there will be a list of applications under ' cellular data use for: "which allows you to disable cellular data for specific applications and see how much data each app and the system used since the last time reset you the statistics.". " It may be a specific application using data more than expected, or something in the System Services are not properly.

  • Test of specific character in Applescript

    Hi Applescript community!

    I try to write a code in which will perform a different action depending on the 1st character of a .txt file. This is my code so far (I'm fairly new to Applescript, so I'm sorry if this is a basic question)

    say application "TextEdit".

    If the first character of "/ Users/Goombado/Documents/applescript_test.txt" is 1 then

    display the dialog box 'Hi. '

    on the other

    display the dialog box 'Hello '.

    tell the end

    end if


    Is it possible to do in Applescript?

    Thanks in advance,

    Andrei

    set this to read "/ Users/Goombado/Documents/applescript_test.txt".

    If this begins by '1' then

    display the dialog box 'Hi. '

    on the other

    display the dialog box 'Hello '.

    end if

  • Since the installation of the latest IOS i.e. IOS 10.0.1 and 10.0.2, my phone is very slow, especially the contacts do not appear in the search and the camera hangs on startup. the battery is also used faster then the previous version.

    Since the installation of the latest IOS i.e. IOS 10.0.1 and 10.0.2, my phone is very slow, especially the contacts do not appear in the search and the camera hangs on startup. the battery is also faster, then the previous version, use 6s with 64 GB

    Hello naqvi65,

    I see that you have several problems with your iPhone after updating to the latest version of iOS. These issues include problems of performance, inability to find contacts at a Spotlight search, problems with enforcement camera freeze after the launch and the battery discharge more quickly than what you are accustomed. I want to help you find a solution for these questions!

    To answer your questions with performance and your inability to find contacts, we will try to restart your iPhone first to see if the problems persist. Take a look at this resource for more information:

    Restart your iPhone, iPad or iPod touch - Apple Support

    Take a look at this Web site using your photo app troubleshooting:
    Get help with the camera on your iPhone, iPad or iPod touch - Apple Support

    To keep an eye on your battery use, take a look at the information here:
    On the use of the battery on your iPhone, iPad and iPod touch - Apple Support

    To help maximize your battery performance, this site has some good tips for iOS devices:
    Batteries - maximize Performance - Apple

    See you soon!

  • unusual warm-up and drainage of battery fast after the update for sierra

    everyone knows unusual warm up their MacBook pro and the draining of battery faster after the update to Mac OS sierra?

    my MacBook 2015 mid pro gets hot when I close the screen and put it to sleep, as well as drainage of battery faster than usual. everyone knows the same?

    Try to use the activity monitor to see where will your battery life.

    1. go to the docking station
    2. Click on finder
    3. Click the menu go
    4. Choose utility
    5. Double-click activity monitor
    6. Click the stack tab

    See you using your battery?

Maybe you are looking for

  • How can I reinstall windows from my old hard drive on a new solid state drive?

    I'm considering buying an SSD and want to reinstall windows from my original hard drive (there is only a recovery partition on the original hard disk and no drive of the Windows operating system).  Anyone can guide me through the process or do I buy

  • T400 switch to touchscreen?

    Hey community! I did a lot of recent improvements to my T400! The newest I think to do so is by exchanging on my current non touch screen for touch screen. However, I have a few questions:1 is a possible switch to a no touch to a touch screen? 2. can

  • Reinstalling vista laptop on the net with product key.

    I tried to restore my laptop and an error, and nothing seems to work. I think that I have to reinstall windows. I have windows Home premium key at the back of my laptop. I need to know if I should buy a new OS or if I could use this product key to do

  • Date format

    Hi guys,. I would like the blackberry datetime value in this format: YYYYMMDDHHMMSS I used this code: DateFormat df = new SimpleDateFormat ("yyyyMMddhhmmss");long dateLong = System.currentTimeMillis ();Date date = new Date (dateLong);String dateStrin

  • Full video cropped width and height appears in the output window

    Hi allMaybe someone can help me with this, maybe I'm doing something wrong or I missed a setting, however, I'm not able to see my full video in the output window.I can see it in the source window, but when I drag to the sequencer to output and run it