Can't get to iSync AppleScript dictionnary ...
Hi,
I am with Tiger (10.4.11). I tried to open iSync's AppleScript dictionnary and iSync crashed. I also tried to open only the application, and it crashes also. The funny thing is that I can sync with the MobileMe services.
Is iSync the app used to sync for MobileMe ?
Thanks in advance.
There is no application as such - it's part of the Operating System.
You access the front-end settings via the .Mac / MobileMe system preferences pane, but all the syncing is handled by various system components not generally accessible to the user.
You can initiate a sync with MobileMe (and mobile phones) via the Sync status menu, which is turned on in iSync's preferences or the Sync tab of the .Mac / MobileMe system preferences pane.
If you mentioned what you're trying to do, maybe we could point you in the right direction.
Similar Messages
-
Where can I get pre made applescripts for Speakable items or speech.
I want to get speech to start playing music in itunes, turn off my computer, and a number of other things. But I know nothing about applescript and would eventually like to know how to make my on scripts for speech but to get started I would just like some pre made ones. Also, speech just randomly locks up or closes. Don't know why.
All drivers, tools and utilities for your Qosmio X770 you can find on Toshiba download page - http://eu.computers.toshiba-europe.com/innovation/download_drivers_bios.jsp
All stuff for Win7 64bit is available there?
If you need more help you are welcome.
By the way: have you created recovery DVD? -
N70 and problems getting the isync agent to the phone
Please! In my work I must be able to sync the most important information. I had a Nokia 6630 which worked flawlessly with the isync. Now I have OSX 10.4.7, isync 2.3 and a new Noika 70. The problem is that I can't get the isync agent to my phone. The phone just want to use the "build-in" Nokia Suite sync function... Please anybody, HELP!
Mac Powerbook G4 867MHz Mac OS X (10.4.7)We understand the need of the update hawkdriver60! Lets get it to work. Are you updating while using WiFi? Please ensure that your WiFi is on. Is your device lacking memory? Go to settings > about to check memory. Please keep me posted! If this does not work, send me a private message with your mobile number. Here to help!
Thank you,
Lena_VZW
Please follow us on twitter @VZWSupport -
HT2484 my MAC does not have iSync in the apps menu. how can i get it???
Im trying to Sync a Nokia Phone, so I'll need the iSync App in my MAC. In every page I have read, the assumption is tath the MAC OS already has the iSync but my MAC does not have it. How can I get it? Or what do I do in this case???
http://europe.nokia.com/support/product-support/isync/faq#03
posible solution
https://discussions.apple.com/message/15674747 -
W900i and iSync. Can't get it to work together! Can anyone help?
I just bought a W900i. I love it. Its what an Apple Phone should look like. But I can't get it to sync. Can anyone help??
Hello,
look here:
http://mobile.feisar.com/
and then klick on "Hints & Tipps"
There is a the isync support for the lovely W900i.
Bye and have some nice days.
Uwe -
Can't get launchd to work with my applescripts
I am trying to use launchd for the first time and not succeeding. I have several applescripts all of which work when I run them either via the script editor or from Keyboard Maestro. I want to learn to run them directly using launch agents. I created the launch agents using Lingon in the basic (GUI) mode but none of them run so I must be making a systemmatic beginners mistake.
As an example, in Lingon I select MyAgents, I use a name like com.bud.create_date, and in the "what" field I navigate to the script file (not an executable, just an editable script file). I then choose a specific time to run every day and save. Then I either logout or, lately, I have used terminal launchctl commands to load and then start the agents. I used the launchctl list command just now to check the status of one of them and I see an exit code of 512, which means I made an error but that's as much as I know.
Any help would be appreciated.budsimrin wrote:
Thanks, Barney, for replying so quickly. I actually did previously use the osascript command, but not exactly the way shown in doug's scripts. But even after changing my scripts to mirror the example you cited, I still can't get any scripts to run. Do you have any further suggestions?
Here is an example. I have an applescript that simply toggles invisibility in the Finder. I call it vistoggle.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<false/>
<key>Label</key>
<string>com.bud.vistoggle</string>
<key>Program</key>
<string>/usr/bin/osascript</string>
<key>ProgramArguments</key>
<array>
<string>osascript</string>
<string>/Volumes/MacHD/Users/bud/Library/Scripts/Bud's\ Script\ Codes/Invisibility\ Toggler.scpt</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>20</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
</dict>
</plist>
By having the program key and the program arguments, you are telling launchd to run
osascript osascript /blah/blah/blah.scpt
Try removing the Program key and just use ProgramArguments; perhaps with the full path to osascript as the first argument.
See here: https://discussions.apple.com/thread/1563624
It apparently times out immediately. Here is the launchctl results.
Bud's iMac 27:~ bud$ launchctl list com.bud.recreate_date_files
"Label" = "com.bud.recreate_date_files";
"LimitLoadToSessionType" = "Aqua";
"OnDemand" = false;
"LastExitStatus" = 256;
"TimeOut" = 30;
"Program" = "/usr/bin/osascript";
"ProgramArguments" = (
"osascript";
"/Volumes/MacHD/Users/bud/Library/Scripts/Bud's\ Script\ Codes/Recreate\ date\ text\ files.scpt";
Bud's iMac 27:~ bud$
Open up console and see if there are any launchd messages relating to that run. That may tell you why it is failing. My bet is "no such file or directory." -
How can I get Applescript to operate correctly again?
I can't Applescript on G4 with OS 10.3.9 to work correctly. When I try to open an applescript the G4 says it can't find the Scriptable Text editor. I am then asked to choose an application but Applescript is not amoung the choices. When I close that window, the script I tried to open now opens with the script in purple (is that significant?). And icon of Scriptable Text Editor in on the desktop but when I try to open it, the program "cannot be found".
The script I am trying to run starts out:
tell application "Scriptable Text Editor"
activate
count characters of document 1
I have some good scripts from my G3 but I can't get the G4 to open or run them. Does this mean I have to reinstall Applescript from the CD? Or should I move the script editor from the extra drive or the desktop and put it in the Applescript folder?HD--
I followed your suggestion and used
tell application "TextEdit"
activate
count characters of text of document 1
end tell
The even log came back as:
tell application "TextEdit"
activate
count every character of every text of document 1
"TextEdit got an error: NSReceiverEvaluationScriptError: 4"
The application I am working with is Appleworks 6. I went to AW6 Text suite dictioary and found:
AppleWorks Text Suite: Terms for use with word processing
Class character: a character
Plural form:
characters
Elements:
character by numeric index, as a range of elements
text as a range of elements
Properties:
color RGB color -- the color
font text -- the name of the font of the character
size real -- the size in points of the character
style text style info -- the text style of the character
uniform styles text style info [r/o] -- the text styles which are uniform throughout the specified text
drawing area drawing layer [r/o] -- the character’s drawing area (only for embedded graphics)
<Inheritance> text [r/o] -- subclass of text
So it appears that Script Editor should recognize characters.
There may be another glitch. When I open the downloaded Scriptable Text Editor, it opens in Mac Classic OS9. I don't know how relavent this is.
I also checked the dictionary for TextEdit Text suite and found:
Class text: Rich (styled) text
Elements:
character by numeric index, before/after another element, as a range of elements, satisfying a test
attribute run by numeric index, before/after another element, as a range of elements, satisfying a test
attachment by numeric index, before/after another element, as a range of elements, satisfying a test
word by numeric index, before/after another element, as a range of elements, satisfying a test
paragraph by numeric index, before/after another element, as a range of elements, satisfying a test
Properties:
<Inheritance> item [r/o] -- All of the properties of the superclass.
size integer -- The size in points of the first character.
font Unicode text -- The name of the font of the first character.
color color -- The color of the first character. -
"Can't get folder 'a'" Error with Applescript
Here is my complete applescript application. I am supposed to select a series folder, and it goes into the folder and for each season folder does something inside, including grabbing the name of the season folder. But it keep throwing an error on the line set folderName to name of folder aFolder saying it can't get name of folder "a", but the only folders inside the folder I select are Season 1, Season 2, and Season 3. Additionally, looking at the replies part of the script editor it looks like it does "M" first with no errors, and they goes to "a". I have no idea where this is coming from so help me if you can. Disregard the weird formatting, copying everything from the script editor into here messed everything up. Thanks.
set seriesFolder to (choose folder with prompt "Select TV Series Folder") as text
tell application "Finder" to set tvName to "list of " & (name of folder seriesFolder as text) & " episodes"
openWebpage(tvName)
repeat with aFolder in seriesFolder
tell application "Finder"
set folderName to name of folder aFolder
set whichFile to every file of folder aFolder
sort whichFile by name
end tell
set sNumber to "0" & ((characters -1 thru -1 of folderName) as string)
set epNum to 1
repeat with aFile in whichFile
if epNum is less than 10 then
set ifZero to "0"
else
set ifZero to ""
end if
set textBox to "What is episode title for S" & (sNumber as string) & "E" & ifZero & epNum & "?"
tell application "Finder"
set filename to name of aFile
set nameEnding to ((characters -4 thru -1 of filename) as string)
display dialog textBox default answer ""
set text_returned to text returned of result
set name of aFile to "S" & (sNumber as string) & "E" & ifZero & (epNum as string) & " - " & text_returned & nameEnding
end tell
set epNum to epNum + 1
end repeat
end repeat
on openWebpage(input)
set seriesName to input
set needle to " "
set replacement to "+"
set searchName to search_replace(seriesName, needle, replacement)
set address to "http://www.en.wikipedia.org/w/index.php?search=" & searchName & "&title=Special%3ASearch&go=Go"
tell application "Safari" to open location address
end openWebpage
on search_replace(seriesName, needle, replacement)
set old_delimiters to AppleScript's text item delimiters
set AppleScript's text item delimiters to needle
set temp_list to every text item of seriesName
set AppleScript's text item delimiters to replacement
set return_value to temp_list as text
set AppleScript's text item delimiters to old_delimiters
return return_value
end search_replaceTry replacing the beginning of the script with:
set seriesFolder to (choose folder with prompt "Select TV Series Folder")
tell application "Finder"
set tvName to "list of " & (name of folder seriesFolder as text) & " episodes"
tell me to openWebpage(tvName)
repeat with aFolder in (get folders of seriesFolder)
set folderName to name of aFolder
(109908) -
How can I get back the two arrow icon of isync on my bar? I'm using OS X 10.8.2 . Thanks
You can't. iSync has been discontinued since Mac OS 10.7 Lion. iSync has no connection with iCloud anyway.
-
Applescript can't get name of front window
The AppleScript support seems broken or unreliable (at least on OSX 10.10.1).
For example, this little, very basic script worked in Firefox 33 but now (34?, 35 or 36) NOT anymore:
tell application "Firefox"
name of front window
end tell
==>
error "plugin-container got an error: Can’t get name of window 1." number -1728 from name of window 1
Hint: If you check the output of the next applescript snippet, you see that the 'windows' don't even get a correct id.
tell application "Firefox"
windows
end tellA further hint (tested on firefox version 35 and 36):
In the script, application 'Firefox' gets replaced by 'plugin-container' when compiling the script !!! -
Hi there. I'm working on a script that posts iTunes track names to Campfire based on the AirPlay device in use. I've been getting a "Can't get window 'iTunes' of <<class pcap>> 'iTunes' of application 'System Events'" and was hoping someone might see an obvious answer. The error pops up randomly. Some machines receive the error much more often than others. Here's the code:
global current_track
global last_track
global campfire_token
global airplay_device
global campfire_room
global current_device
(* Begin user defined settings ************)
set campfire_token to "123456" (* Your Campfire API authentication token *)
set airplay_device to "Apple TV" (* The name of your AirPlay device *)
set campfire_room to "https://yourorg.campfirenow.com/room/123456/speak.xml" (* The Campfire room you'd like to post to *)
(* End user defined settings *************)
set current_track to ""
set current_device to ""
set last_track to ""
on idle
if application "iTunes" is running then
tell application "iTunes"
if player state is playing then
tell application "System Events"
tell application "iTunes"
set minimized of front browser window to false (*This AppleScript can only function when iTunes is not minimized. *)
delay 2
set visible of front browser window to true
delay 2
set current_track to current track
end tell
delay 2
set current_device to the description of button 8 of window "iTunes" of application process "iTunes" of application "System Events"
end tell
delay 2
if current_track is not equal to last_track then
if current_device as string is equal to airplay_device & " AirPlay" then
tell application "iTunes"
set current_track to current track
tell current_track
set trackName to (name)
set artistName to (" :: " & artist)
set albumName to (" :: " & album)
end tell
set track_info to (trackName & artistName & albumName) as string
(* Replace apostrophes *)
set search_string to "'"
set replacement_string to "'"
set AppleScript's text item delimiters to the search_string
set the item_list to every text item of track_info
set AppleScript's text item delimiters to the replacement_string
set track_info to the item_list as string
set AppleScript's text item delimiters to ""
(* Replace quotation marks *)
set search_string to "\""
set replacement_string to """
set AppleScript's text item delimiters to the search_string
set the item_list to every text item of track_info
set AppleScript's text item delimiters to the replacement_string
set track_info to the item_list as string
set AppleScript's text item delimiters to ""
set shellCommand to ("curl -u " & campfire_token & ":X -H 'Content-Type: application/xml' -d '<message><type>TextMessage</type><body>" & track_info & "</body></message>' " & campfire_room)
set shellCommand to shellCommand as string
do shell script shellCommand
(*display dialog shellCommand*)
(*log "Posting to Campfire:" & shellCommand*)
end tell
delay 2
end if
end if
set last_track to current_track
end if
return 1
end tell
end if
end idle
Thanks for your help. Any suggestions are appreciated!well, for information's sake, the cleaned-up script looks like this:
(* Begin user defined settings ************)
property campfire_token : "123456" (* Your Campfire API authentication token *)
property airplay_device : "Apple TV" (* The name of your AirPlay device *)
property campfire_room : "https://yourorg.campfirenow.com/room/123456/speak.xml" (* The Campfire room you'd like to post to *)
(* End user defined settings *************)
global current_track, last_track, current_device
on run
(* init at runtime*)
set current_track to ""
set current_device to ""
set last_track to ""
end run
on idle
if application "iTunes" is not running then return 60
tell application "iTunes"
if (player state is not playing) or (current track is equal to last_track) then return
set last_track to current track
set minimized of front browser window to false
set visible of front browser window to true
set current_device to my getDevice()
if current_device as string is not equal to airplay_device & " AirPlay" then return
set track_info to my mungeText({name, artist, album} of last_track, "", "::")
set track_info to my mungeText(track_info, "'", "'") -- Replace apostrophes
set track_info to my mungeText(track_info, "\"", """) -- Replace quotation marks
set shellCommand to ("curl -u " & campfire_token & ":X -H 'Content-Type: application/xml' -d '<message><type>TextMessage</type><body>" & track_info & "</body></message>' " & campfire_room)
do shell script (shellCommand as string)
(*display dialog shellCommand*)
(*log "Posting to Campfire:" & shellCommand*)
return
end tell
end idle
on getDevice()
tell application "System Events"
tell process "iTunes"
return description of button 8 of window "iTunes"
end tell
end tell
end getDevice
on mungeText(itxt, stxt, rtxt)
set tid to AppleScript's text item delimiters
if class of itxt is text then
set AppleScript's text item delimiters to stxt
set itxt to text items of itxt
end if
set AppleScript's text item delimiters to rtxt
set otxt to itxt as text
set AppleScript's text item delimiters to tid
return otxt
end mungeText
I'm positive there's a better way to check if AirTunes is the active device (maybe by seeing if the current playlist is a device playlist, and checking the source name?), but I don't have any way to test that. -
Where can I find "Getting Started with AppleScript"?
I googled it. And it doesn't show any links from Apple. I'm trying to learn AppleScript and the Language guide says to go through the Overview first which in turn recommends going through Getting Started with AppleScript.
I even searched Mac Reference Library but it just doesn't show up!
Any help?
NeeravNo, certainly not. I mean, I don't know any AppleScript, but I can say with certainty that the answer to that question is no.
Objective-C is a programming language that is an extension of the C language. It is the language that is used to develop applications for Mac and iPhone. Other languages like C++ and Java can be used as well, but Objective-C is the language that Apple really intends for you to use for Mac and iPhone development, since it is heavily integrated with the Cocoa framework (for Mac developemt) and Cocoa Touch framework (for iPhone development). You need to know the C language to learn the Objective-C language, and you need to know the Objective-C language to work with the Cocoa or Cocoa Touch frameworks, but AppleScript is a totally separate and different animal from these things. AppleScript is a scripting language, and although it can technically be used to create applications from what I understand, it is mainly used as a mechanism for controlling applications. For example, you could use AppleScript to tell a certain application to perform a certain task everyday at a certain time. You can use it to create automated workflows and whatnot. I think that's what it's mainly meant for.
It's worth noting, however, taht there is a development environment called AppleScriptObjC. I don't really know anything about this, except that it allows for AppleScript to be used as the primary programming language.
I found a lot of this information at [Wikipedia's AppleScript page|http://en.wikipedia.org/wiki/AppleScript], so you might want to consider looking over it real quick -- it might be helpful. Here is the link to [Wikipedia's Objective-C page|http://en.wikipedia.org/wiki/Objective-c] and [Wikipedia's Cocoa page|http://en.wikipedia.org/wiki/Cocoa_%28API%29]. As someone said on these forums, Wikipedia is far from the last word on any subject, but those links might be helpful for you for just getting an idea of what these things are all about.
Hope that helps some. Please let us know if you have any other questions. -
Applescript for mail error can't get message id
I have an applescript (found on internet) for Mail 4.5 that deletes messages in "on my mac" mailbox "Deleted Inbox" that are older than 120 days. The script runs from an iCal daily event. I drag messages from Inbox to "Deleted Inbox" when I don't want the message in Inbox, but I want to save the message for 120 days before deleting it. The script sometimes runs successfully, and sometimes gives error "Mail got an error: Can't get message id xxx of mailbox "Deleted Inbox"". Then in Mail, I "Mailbox / Rebuild" that mailbox, and run the script manually without error. How can I avoid that error? The script is essentially:
tell application "Mail"
set OldStuff to every message of mailbox TheBox where date received of it < OldDate
repeat with ThisMessage in OldStuff
delete ThisMessage
end repeat
end tell
Thanks for any help.
KenHow can I avoid that error?
I don't actually know how you can avoid that error. However, maybe you can use a workaround and have the script rebuild the mailboxes automatically when such an error occurs. Try the following code:
tell application "Mail"
try
set OldStuff to every message of mailbox TheBox where date received of it < OldDate
on error
activate
tell application "System Events" to click menu item "Rebuild" of menu 1 of menu bar item "Mailbox" of menu bar 1 of process "Mail"
delay 1 -- adjust if necessary
set OldStuff to every message of mailbox TheBox where date received of it < OldDate
end try
repeat with ThisMessage in OldStuff
delete ThisMessage
end repeat
end tell
Since the above script uses GUI Scripting, you must enable the Accessibility Frameworks by clicking the checkbox labeled "Enable access for assistive devices" in the Universal Access System Preference pane.
Message was edited by: Pierre L. -
PSCS3 Mac: Can't get Applescript to open "desktop:folder:file.jpg"
I have Photoshop CS3 and am scripting a lengthy workflow, and part of it requires that I get Metadata out of files using Photoshop.
I can not get Photoshop to open a file. Once I have the file open, I can get the metadata out using UI scripting, but I have tried numerous approaches to open files and it has me stumped.
I am making it as a function that I can call from the main script which compares a new list of files with a list that is a few minutes old to determine which files are new and repeats with each file in the list. So the function will be getting a file name or a path.
Any help would be greatly appreciated!
BrianI got it! It needs to be an alias class path, and I had to concatenate the path incrementally before finally the whole path is in one variable I could coerce into an alias.
Of course, this is just one segment of the whole workflow.
tell application "Finder"
activate
set fileList to name of (items of folder "to gallery" of desktop)
repeat
set newFileList to name of (items of folder "to gallery" of desktop)
if length of newFileList > 0 then
repeat with thisFile in newFileList
if thisFile is in fileList then
else
my PSInfoGalAdd(thisFile)
end if
end repeat
set fileList to newFileList
end if
delay 30 --This will eventually be 4 minutes
end repeat
end tell
on PSInfoGalAdd(thisFile)
tell application "Adobe Photoshop CS3"
activate
set desktopPath to path to desktop
set toGalPath to desktopPath & "to gallery:" as string
set wholePath to toGalPath & thisFile
set openIt to wholePath as alias
open openIt
tell application "System Events"
tell process "Adobe Photoshop CS3"
key code 34 using {command down, option down, shift down} --File info window
delay 4
repeat 12 times
key code 125 --down arrow to Origin
delay 0.2
end repeat
repeat 5 times
key code 48 --tab to credit
delay 0.2
end repeat
key code 8 using command down --copy
delay 0.3
set credit to the clipboard
repeat 3 times
key code 48 --tab to instructions
delay 0.2
end repeat
key code 0 using command down --select all
delay 0.3
key code 8 using command down --copy
delay 0.3
set headline to the clipboard
key code 48 --tab to transmission reference
key code 0 using command down --select all
delay 0.3
key code 8 using command down --copy
delay 0.3
set body to the clipboard
key code 48 --tab
key code 36 --return key to dismiss info window
end tell
end tell
end tell
end PSInfoGalAdd -
Applescript editor error - "can't get item 1 of false" when clicking cancel to close window.
Hello
I have made my first ever app which opens a webpage, its very basic but when I click the cancel button to close the page I get an error pop up saying can't get item 1 of false. I have looked it up and tried a few suggestions but the error just changes instead of exiting the window like it should
The code looks like this, I am wondering if anyone has any suggestions on how to fix this ...
--create the dialog list
set item_list to {"Google"}
set item_selected_array to (choose from list item_list with title "Google app" with prompt "To select the webpage, select it from the list and then click Ok" cancel button name "Cancel")
set item_selected to item 1 of item_selected_array
--google
if item_selected = "google" then
try
tell application "Safari" to launch
tell application "Safari" to activate
tell application "Safari" to open location "http://www.google.com"
end try
end if
Thanks for looking and sorry if this is in the wrong sectionThe choose from list command will return a list of items chosen (even if there is only one) or the boolean false if the cancel button is pressed, so you just need to check for the cancel result. Since you are only selecting one item, one way would be to coerce the result to text (since you need to get the choice from the list anyay) and compare that - note that you don't need to target Safari for the open location command, since it is from Standard Additions.
set item_list to {"Google"}
set theChoice to (choose from list item_list with title "Google app" with prompt "To select the webpage, select it from the list and then click Ok" cancel button name "Cancel") as text
if theChoice is "false" then error number -128 -- cancel
if theChoice = "google" then --google
open location "http://www.google.com"
end if
Maybe you are looking for
-
Error Message ISSR452 while creating Financial Transaction
Hi Experts, While creating Fixed Deposit in FTR_CREATE is get the following error message No master data selected for fixed asset Message no. ISSR452 This message no relevance to current Fixed Deposit transaction. Also no related post or Note is avai
-
All USB ports are no longer 2.0
I have been struggling recently with the USB ports on my Intel Mac Mini, circa 2007, OSX 10.5.8. Everything I plug into any of the 4 USB ports in the back will come up as a 12 Mbps port, not a high speed 2.0 port. I don't know how to diagnose the iss
-
please I'm actually a "to be" graphics designer. I'm starting fully soon for a mini business purpose. Just about thirty minutes ago, my HP little printer (j510) just got spoilt. it kept blinking d coloured cartridge light indicator even when d softwa
-
Graphic Image for Folder Image in Finder
I have created a few folders in finder\applications to group apps together. For example, I have created a folder for iLife apps. When I open Applications, the iLife group shows as a plain folder image labeled iLife. I would like to customize the f
-
Bought 17" Macbook Pro 2.8 Core 2 Duo on Monday, new MBP's out today!!
Hi Hoping for some consumer advice here... I am a mac user for over 15 years but on Monday, I had a day off work and after looking at getting a new 17" Macbook Pro for well over a year to replace my dieing 15" version, I bit the bullet, and was at fi