Apple Script Question

I am learning Apple Script and I came across a roadblock. I was playing around with "get position and it does not work."

The script is: tell application "Finder" to get the position of Finder window 1.

It compiles OK but when I run it I get this error: error "Finder has been an error: cannot get the window id position Finder 661 ' number 1728 from the position of the Finder window id 661.

My latest version of Mac OS is 10.11.5.

The script editor version is 2.8.1.

Also I use Apple Training Series: Applescript 1-2-3.

Thanks for any help.

Replace postion by position.

(143422)

Tags: Mac OS & System Software

Similar Questions

  • Apple script to check the part of iTunes library XML with another application.

    Y at - there no apple for script

    Set 'share the XML library with other applications iTunes'. under the name selected

    • iTunes
    • Preferences
    • Advanced tab...

    I want to read itunes Media Library .xml, but in the last version of iTunes without xml is created by default,

    so I want this XML created by my application through the apple script.

    iTunes12.4

    I don't think you can change that setting via AppleScript, however once you have enabled then the XML file will be generated and updated every time that the library is updated.

    TT2

  • Apple script to check the part of iTunes XML library with other applications.

    Y at - there no apple for script

    Check "Sharing iTunes library XML with other applications." Of

    • iTunes
    • Preferences
    • Advanced tab...

    I want to read itunes Media Library .xml but lates itunes no xml is created by default,

    so I want this XML created by my application through the apple script.

    iTunes12.4

    https://discussions.apple.com/message/28513383#28513383 - new with the parameter preferably 12.2 iTunes to turn create .xml

    If you really want an AppleScript, I think you should ask on the iTunes for Mac forum, or maybe the OSX Technologies.

  • Apple Script to apply rules in Mail.app

    • I've created some rules in my Mail.app to change the background color of specific messages
    • And I also created rules in the mail server in order to move the messages to a folder

    For messages in the Inbox folder, everything is fine.

    But if the message has been moved by the server rule in another folder, then rules the Mail.app do not apply (and reasons twisted, this is normal: https://support.apple.com/kb/PH19162?locale=en_US & viewlocale = en_US).

    Then if I apply the rules manually by pressing Command + Option + L < code > < code >, Mail.app rules will apply as they should.

    I want to automate this action. Is it possible with Apple Script? Can you help me with this? The steps would include, I guess that:

    1. Choose the smart folder "today."
    2. Select all messages in this folder;
    3. Perform the action "Rules" for selection.

    < pre >

    using terms from application "Mail".

    Tell application "Mail".

    the value of the message_count in HOW-TO-GET-MESSAGES-FOR-TODAY-SMARTBOX County

    Repeat with i from 1 to the message_count

    the value this_message to article i of MESSAGES TODAY ' HUI-SMARTBOX

    say this_message

    -That's something like the RULES APPLY

    tell the end

    end repeat

    tell the end

    end using terms from

    < / pre >

    If it is not possible for a smart folder, then I want to do, it goes all messages in all mailboxes mailbox (or with messages in the specific mailbox).

    Apparently, this is not possible as long as such action is not be scriptable.

  • Under which community should I use for apple store questions?

    Under which community should I use for apple store questions?

    I need to get my Bill for a 5s iphone that is more than 18 months.

  • Network advertising readers and apple script editor or

    I have a new laptop Mac. I have it on a Windows domain and I get my drive mapping in the sidebar when I connect with my AD account. When I change my account to a mobile account, I lose the map in the sidebar. I get it if I connect to the server, but does anyone know how I can get there?

    I did some research and I thought of making an Apple Script would be the way to go. I'm a total newbie when it comes to the Script Editor, but I managed to do work properly when I have a connection of network here at work. But if I bring home, of course I'll get an error. Here is where I'm stuck. I need help to create a "if exists" so if a user is at home when he's trying to turn up the volume it will not give an error message when it fails.

    Here's what I have so far. When I press the hammer icon it is not an error, but when I press the play button it give me a 'walk', but disappears as soon as he says.

    Tell application "Finder".

    If there is "smb://abc/EmployeesHome" then

    turn up the volume 'smb://abc/EmployessHome' as username "username".

    other (* Nothing *)

    end if

    tell the end

    Any help would be appreciated!

    You should check the thing, as for example address public IP of the computer to determine which network it is. Methods of doing this include:

    the script "curl http://ipv4bot.whatismyipaddress.com/"shell

    (139971)

  • Open ssh server files automatically with apple script

    Hello from respected people

    I am trying to build an apple script first terminal connection open ssh with details and after connecting, it will open a python script which is on ssh server automatically. I want to do all these tasks in a script unique apple. I already tried to build automatic ssh connection and I did. but I am facing problem, how can I call a python script in ssh server automatically.

    as if I had a python files in ssh server /home/exe/ai.py

    so I want whenever I run Apple script it connect in ssh and ai.py opens automatically.

    I'm new in the apple script please help

    I tried it here 3 days but no luck, please help me

    At first glance, it seems to me that you need to refresh your ssh.

    # ssh some.host python /home/exe/ai.py

    will ssh to the specified host and run the command "python /home/exe/ai.py".

    To run this via AppleScript, put it in a shell script command:

    the shell script "ssh some.host python /home/exe/ai.py.

  • I agree with Ccider, try to talk to anyone from Adobe is a joke. It is, when Adobe will get the Quick Time 7 code inserted by Apple resolved question of blocking?  Like others, I touch PSE14 until they do.

    I agree with Ccider, try to talk to anyone from Adobe is a joke. It is, when Adobe will get the Quick Time 7 code inserted by Apple resolved question of blocking?  Like others, I touch PSE14 until they do.

    frankv11114037 wrote:

    I agree with Ccider, try to talk to anyone from Adobe is a joke. It is, when Adobe will get the Quick Time 7 code inserted by Apple resolved question of blocking?  Like others, I touch PSE14 until they do.

    I'm curious, what exactly is your problem?

    The system requirements for PSE14 and ss14 requires Quick Time 7 on Win or Mac.

    I just checked that I had not installed on my PSE14 on 10 to win Quick Time 7. No problem, but I rarely videos, and I have other viewing software like VLC media player.

    Just out of curiosity, I installed Quick Time 7 without problem.

    Wouldn't be a problem with Premiere Elements or Mac?

  • How to disable the "Swatch overprint [Black] to 100%" option in Indesign by Apple script

    Hi friends,

    I'm new to Indesign Scripting with Apple Script. As a beginner, I'm doing some basic scripting in Indesign by Apple Script.

    My goal is to turn off the "Swatch overprint [Black] to 100%" option in Indesign. This option is available when we go to Indesign-> Preferences-> appearance of black.

    In addition, if a user opens a file, in which the sample is already activated, then he should encourage him to turn off.

    I can do a display dialog box in AppleScript. But I am little unsure as how can I go ahead and disable this option. I tried this script below:

    say application «Adobe InDesign CS4»

    say each window layout to the value the overprint preview to fake

    end say

    However, it changes the display of the overprint preview option.

    Appreciate your help and suggestions!

    Thank you

    Abhishek

    say application "Adobe InDesign CS5.

    say the active document

    set overprint black of the document preferences to false

    end say

    end say

  • Apple Watch questions

    Help!

    I have two problems with my Apple Watch and no doubt they are related.

    #1 problem: I can not pay Apple to be set up on my Apple Watch series 1 (old shows).

    -C' is my Apple Watch alone, and the only one I've ever owned (work watch OS 3)

    -J' I have set up my card with my Bank and have successfully used today in a store using Apple pay on my iPhone 7.

    -My app to watch on my iphone has, under general, my Apple ID listed with no opportunity to tap anywhere on the Apple ID screen but watch just my email associated with my Apple ID account address (nothing else).

    -J' tried to restart my phone and shows it by turn off

    -My card linked to my wallet and Apple ID appears on my app to watch on my iPhone when you look under the folder Wallet and Apple pay my watch app on iPhone. It has a button "Add" in orange. I click on this and it brings up a box saying "could not configure Apple pay - year error occurred while setting up Apple pay." You have to click on 'OK '.

    -I can only assume it is because it is an unreliable device or requirement "two-way authentication." If this is the case, I can't find how to set up a two-way authentication on my Apple Watch trust.

    Problem #2: I can not set up the Apple Watch to unlock Sierra iMac or Macbook of Sierra.

    -My computer has been set to unlock with Apple Watch. I finished two-way authentication (with the exception of the above question to authenticate the Apple Watch (in the list of devices is showing as not reliable because I can't understand how do).) Still can't unlock the computer.

    Help, please. I really want to solve.

    Two-way authentication is not required to set up Apple pay on the Apple Watch. I do not use it and did not have my paycheck from Apple set up on my watch. To test, I typed on Add to one of the cards in my phone, and all asked that the WB was he adds immediately. See this page from the start Apple Watch user's Guide. http://help.Apple.com/watch/#/apd76424826d

    You have an authentication code that is defined on your watch? This Apple Support document is more in the instructions of depth on-site Apple pay on all your devices. Set up Apple pay on your iPhone, iPad, Apple Watch or a Mac - Apple Support

    Hope this helps.

    I'm sorry, I'm not a Mac user, so I could not address the issue with the help of the watch to unlock the computer. I've seen a number of discussions here about it, you can do a search on the forum for the past two days since the release of Sierra for more information.

  • Apple script texedit

    Hello

    Question is: How can I talk text edit app to take five first (seven, etc) words in the document and place it in another file? and any other words with specified numbers, EQ words of 4 to 8 in this text?

    Thank you

    The following script assumes that you already have a document open in TextEdit. It will prompt you for all of the words you want to extract in another document. This prompt looks like this to select the first ten words. You can also specify 4.9, or of a different range in the number of words in the document.

    Copy and paste the following in your Script Editor AppleScript (launchpad: others: Script Editor). Click on the hammer to the compilation and the adjacent button icon to run it. You must save this twice. First of all, as the source of the AppleScript by selecting the file menu: Save... File format: text. This will add the extension of applescript to your script source. Press the option key and then file menu: Save under... and your file Format can be scpt, scptd or application. Put this one on your desk and quit the Script Editor.

    -wordselect.applescript

    -take the user input range n, n word and remove it from the current

    -TextEdit document into a new document on the desktop.

    game of aDoc to ((path to the Office) as text) & "wordselection.txt".

    wordSel the value of text returned of (display dialog response 'Enter the word interval to n, n' by default ' ")

    -Separate the numbers in a list

    the value {oldTID, my text item delimiters} to {my point of text delimiters, ","}

    the value word_values to (text elements of wordSel)

    the value Separators to oldTID AppleScript point text

    say application "TextEdit".

    activate

    say text of front document

    define allwords to count words of her

    if ((second element of word_values) as integer) > allwords then

    Display alert "You specified more words that are in the document." give up after 10

    return

    end if

    Define myWords in words ((first element of word_values) as whole) thru ((second element of word_values) as whole)

    end say

    end say

    say application 'Finder '.

    Try

    set fileRef to (open for access file CODA with writing permission)

    -Separate words by spaces

    the value {oldTID, my text item delimiters} to {my point text delimiters, space}

    write ((myWords comme texte) & back) to fileRef starting at eof

    the value Separators to oldTID AppleScript point text

    FileRef close access

    on error

    Try

    FileRef close access

    end try

    end try

    end say

    return

  • Firefox is having "Script" questions (no response) und eventually Flash issues?

    Okay, downloaded Firefox for the first time like a year yesterday. It worked perfectly, oh, how I missed it. I hate using Google Chrome with a fiery burning passion.

    However, although it worked perfectly yesterday, I have not downloaded anything or has any plug-ins/extensions, whatever.

    Today, however, I can go on www.google.com (on firefox), but if I try to go on my site banks, Habbo.es, or something like that, all the sudden Firefox decided to hang. It freezes und I get that annoying "(ne répond pas)" upstairs. " I have to shut completely out of the browser, open und renounce session restore.

    Some websites is okay, however, it seems that many of them are not.

    I get a script error message, this day for Neopets.com , which displayed was "lookout.bluecava" or something like that. Asked if I wanted to wait for script to respond or if I wanted to stop him. Whatever it is, it ends with closing me und on return from google.

    Ask this question, I had to re - download google chrome, und log in from this browser since Firefox is not even want to support right now, it's own support forum! Stuff of crazy, right?

    In any case, since it is having a problem with "script", I went to java, made sure I had the java update installed on my computer, then I made sure that I got the update java plugin. Und I even downloaded java 64 bit for him as well, the 7u45 or something else.

    So, my java on my comp und firefox browser are apparently up to date, und the thing of the add-on for Firefox to check if the plugins are up to date says that they are all up to date.

    Still having the issue. At the time where I go to imvu or another site that has this issue, it freezes for 10 seconds und that's all she wrote.

    So I'm not really wanting to go back to Google Chrome for another year, I miss the hell out of Firefox.

    To add: the question that I have now with Firefox is the same problem, I had a year before, when I had to uninstall firefox und go with Chrome in the first place.

    But, since yesterday it was normal when I installed it, I thought it was fixed. Wrong in less than 24 hours.

    Before I submitted this, I decided to jump on Firefox und try something.

    I disabled the Shockwave Flash und plugins Shockwave Director. Now, Firefox works again.

    so.

    He asks me if I want to install the 'flash' plugins needed to view content on the page (I used Neopets.com trying after disabling the Shockwave), but still runs.

    So, what should I do for flash? Or better yet, what is happening with it?

    I downloaded the flash yesterday in a half hour startup of Firefox after you download it. Und it worked very well for hours.

    I turned off the computer, he packed up, went home, back to work, hop on the net und BAM. All the shock wave suddenly is having problems with Firefox when nothing was done he commit? Is not supposed.

    Other info:
    Windows 7 Home Premium on HP laptop.

    Well, I don't know what was the root cause of the problems I had. But I had a friend completely erase my computer und installation Windows 7 Professional on this topic. Und now, I no longer have problems with Firefox about flash. It's purr in this Department.

  • forget the apple security question answer

    Hi how to do security answer? as I forgot the answer

    If you have an emergency check on your account e-mail address (an additional/alternate e-mail address is different), then you can use it to reset the: If you forgot your Apple ID security questions answered

    If you do not have a backup email address (you won't be able to add one, until you can answer your questions), you will need to contact support in the country where you are (and therefore the country on your account) to get the reset questions: Contact Apple for the Apple ID account security support

    If your country is not on this page, then try this form to contact Support: https://www.apple.com/emea/support/itunes/contact.html

    When they were released, and if you don't have an alternate email address, you can then add one for possible future use: on your Apple ID - Apple Support email addresses

    Or if it is available in your country, you can substitute 2-step verification: frequently asked questions about two-step for Apple ID verification

  • Apple Support questions to verify the identity

    can someone tell me when you know your password and do not know security issues and do not have access to the e-mail of recovery that call you Apple for support including apple questions ask you to verify your identity any idea please

    You will need temporary support PIN and an element of personal information associated with your Apple ID.

    (138932)

  • Apple music questions

    So I got a gift of music apple with an oder of headphones and I want to register but I have a few questions.

    -If I want to sign up for a single membership, but I share my iTunes account with my family, how it will work?

    -If I sign up for a single subscription can I use it on my computer and iPhone or only my iPhone?

    -If I have my own Apple ID that I use for iCloud am I better to just use this ID to the music instead of the family an Apple?

    Also if anyone has any advice or anything else I should know that would be great.

    Thank you!

    Hello

    If you and your family use the same Apple ID then only one Member should be ok, but read this family sharing - Apple Support

    You can use the iPhones and computer but you if you want to access your existing library on all devices, you will need to set up a library iCloud music on your computer.

    You can use separate Apple ID to iCloud and itunes. If you use a family identifier Apple for itunes, you must use it.

    Jim

Maybe you are looking for