applescript

applescript to compare cell values and then place the value of one cell into another

跟風遠走 提交于 2019-12-13 05:18:57
问题 in a numbers app table i have the following data A B C D user_id login user_id login 2039 Abbott, Rachael Adams, Sue 110 Abbott, Shelby Adamson, Wendy 2910 Abraham, Binu Anderson, Daryl 121 Adams, Sue 122 Adamson, Anne 126 Adamson, Wendy i am trying to write an applescript that will... iterate down logins in column D to find a matching login in column B take the value of the user_id in column A at the row where the match was found and place it into column C in the same row as the entry in

Outlook 2011: Adding some messages to “Waiting for reply” folder

牧云@^-^@ 提交于 2019-12-13 05:01:32
问题 My use case is that I want to track for responses on some messages I write. My methodology now is to wait for the message to be sent the move it from the sent folder to the "Waiting for reply" folder which I go over periodically. I'm looking for a way to automate this. Best would be if I press a key which makes Outlook both send the message and put it in the Waiting folder. E.g., by using an applescript. Alternatively, I thought that pressing a key will add me as BCC, and also add a " WF "

Why does this preinstall script just partly run?

牧云@^-^@ 提交于 2019-12-13 04:52:13
问题 I use PackageMaker to create an installation package. The following is my preinstall script to be called by Installer : #!/bin/sh /usr/bin/osascript <<EOF tell application "System Events" if exists (application process "Dictionary") then tell application "Dictionary" to quit end if end tell set theFolder to (path to library folder as text) & "Dictionaries:" set fileNames to {"dict1.dictionary", "dict2.dictionary", "dict3.dictionary", "dict_n.dictionary"} set dict to {} repeat with aFile in

Fixing a filemaker script with Embeded Applescript and Global Field

半腔热情 提交于 2019-12-13 04:41:59
问题 With a great deal of help from @Chuck I have written this filemaker script which is supposed to find related PDF attachments in container fields and export them to a temporary folder then trigger an applescript which will open & print the documents using adobe acrobat. Unfortunately the script will not work and although I have used script debugger and tried to follow advice I am still having difficulty. Any assistance in telling me exactly where I'm going wrong would be appreciated. Go to

How to add new features to my Hangman game?

纵饮孤独 提交于 2019-12-13 04:36:34
问题 I am working on a game, Hangman. I have the code down, I just want to display the word if you lose. How can I do that? hangman's init()--by Londres on Stack Overflow script hangman property stdin : missing value property stdout : missing value property dict : missing value on init() --starting up the game set stdin to parent's hangmanStdin's alloc()'s init() set stdout to parent's hangmanStdout's alloc()'s init() set dict to parent's hangmanDictionary's alloc()'s init() my mainLoop() end init

How to get the number of items in a pop-up menu without opening it using applescript?

回眸只為那壹抹淺笑 提交于 2019-12-13 04:26:56
问题 I want to write a script which saves the images in few formats. the thing is the formats are shown based on some condition. I means some times there will be 5 formats and sometimes 8. I want to completely automate the working of these saving things. So i decided to write an applescript. Got UI browser and using that I can access each and every pop-up menus. I'm using loops to perform save operation. The thing is I am not getting where to end. So i came up with a thought that if i can get the

get language of currently logged in user via applescript

让人想犯罪 __ 提交于 2019-12-13 04:01:37
问题 I want to get the system language of the currently logged in user. The line set lang to do shell script "defaults read NSGlobalDomain AppleLanguages" returns an string, which looks like ( en, de, ja, fr, es, it, pt, "pt-PT", nl, sv, nb, da, fi, ru, pl, "zh-Hans", "zh-Hant", ko, ar, cs, hu, tr ) returns the users languages, but how can I get the first one of this 'array'? Is there a possibility to parse this as an array an get its first value? 回答1: There's a more direct method. Applescript has

iTunes Scripting Bridge reveal does not work

…衆ロ難τιáo~ 提交于 2019-12-13 03:24:56
问题 The following code should show a certain track in iTunes: NSString* iTunesPath = [[NSWorkspace sharedWorkspace] absolutePathForAppBundleWithIdentifier:@"com.apple.iTunes"]; iTunesApplication *iTunes = nil; if ( iTunesPath ) { iTunes = [[SBApplication alloc] initWithURL:[NSURL fileURLWithPath:iTunesPath]]; [iTunes setDelegate:self]; } iTunesSource *librarySource = nil; NSArray *sources = [iTunes sources]; for (iTunesSource *source in sources) { if ([source kind] == iTunesESrcLibrary) {

Getting osascript to work with iPhone and QuickTime Player

寵の児 提交于 2019-12-13 03:19:55
问题 I run this script and applescript can detect the devices just fine tell application "QuickTime Player" video recording devices end tell It gives a the reply below {screen compression preset "FaceTime HD Camera" of application "QuickTime Player", screen compression preset "Gangzheng's iPhone" of application "QuickTime Player"} But when I run my actual script tell application "QuickTime Player" video recording devices set newMovieRecording to new movie recording tell newMovieRecording set

Using Javascript | Applescript to click button in Safari

早过忘川 提交于 2019-12-13 03:04:29
问题 I realize there are several threads about this and they are all very specific to certain website . My background is in Python, not Javascript or Applescript, and I'm confused on exactly how to achieve this action . I've seen several scripts doing this action, namely: tell application "Safari" activate do JavaScript "document.forms['search']['order_list_search_batch'].click()" end tell What is the best method to act this out ? i'm confused on what goes in between "document.forms[WHATGOESHERE?]