Using Applescript or Automator with Awaken
so, i am trying to write a script and/or automator workflow to set up alarms in a program called awaken.
i want it to work like this
every sunday night, i want a script/workflow to run (triggered by an ical event most probably) that will search for events in the next week and somehow input those times as alarms into Awaken.
this is what i've figured out so far.
in automator, i have a workflow that will search for an ical event, output that info to an event summary, and then filter that text by the word "date" or "time" and then set that to a variable.
so, basically, this gives me a variable with a date and/or a time. but how can i get this into awaken? i can use watch me do to open awaken, make a new event, and start to input the text, but how can i apply that variable to the text?
any thoughts/suggestions?
ok, this is almost working. i have one weird problem though.
here's my script so far:
tell application "iCal"
tell calendar "Test"
set myDate to (start date of first event whose start date is greater than (current date) and start date is less than ((current date) + 7 * 86400) and summary is "work")
set myDate to myDate - 2 * hours
set mon to month of myDate as integer
set da to day of myDate as integer
set yea to year of myDate as integer
set hour to (hours of myDate) - 2 * hours
set min to minutes of myDate
end tell
end tell
tell application "Awaken"
activate
end tell
tell application "System Events"
tell process "Awaken"
click button 4 of window "Awaken"
delay 0.3
click text field 1 of sheet 1 of window "Awaken"
delay 0.3
set eventtitle to "2012"
keystroke eventtitle
delay 1.0
click pop up button 1 of group 2 of sheet 1 of window "Awaken"
delay 0.3
click menu item "Wakeup" of menu 1 of pop up button 1 of group 2 of sheet 1 of window "Awaken"
delay 0.3
click pop up button 2 of sheet 1 of window "Awaken"
delay 0.3
click menu item "Date" of menu 1 of pop up button 2 of sheet 1 of window "Awaken"
delay 0.5
set x to 1
repeat until x = 7
keystroke tab
set x to x + 1
end repeat
keystroke mon
delay 0.3
keystroke tab
delay 0.3
keystroke da
delay 0.3
keystroke tab
delay 0.3
keystroke yea
delay 0.3
keystroke tab
delay 0.3
keystroke hour
delay 0.3
keystroke tab
delay 0.3
keystroke min
end tell
end tell
and it works so far without any errors, however, when it tabs into the date/time fields of the awaken window to type the variables, they don't get typed. if i don't use a variable and do "keystroke "2010" or something to that effect, it works, but that won't work for me since i want this to read the value from the ical event. it will type a variable value into the title field, but not into the date or time fields, and i can't figure out why.
Similar Messages
-
Using Applescript (or Automator) to delete Albums
When you import folders into Aperture, it creates for every folder an Album "Images from:" whatever the folder name is. Is there a way using Applescript that I can easily delete those albums? They are essentially useless as they stand to me. I am importing a large number of folders, so I am getting those albums all over my Aperture library.
The short answer is yes you can use apple script to do that - there is virtual no documentation you will have to take a look at all the methods that aperture exports to figure out what you have to do. If you are new to applescript/automator you may want to think twice about taking that on.
Just a note regarding import - There are three ways to import into aperture:
1) the normal way - import images - this takes all the images in a folder and imports them into an existing or new project.
2) if you happen to be clicked on an existing project you can use import folders as albums (what I think you are doing).
3) if you happen to be clicked on the library level or a blue folder that same option number 2 changes into import folders as projects.
Using the combination of the three may ease the import a little with out resorting to applescript/automator unless you are familiar with using those tools that may be rough going.
RB -
Using Applescript and Automator to manage files and folders
Hi all.
I need to make a simple action via applescript and-or automator to take the file it's been applied to (via the services) create a folder around it with the same name as the file.
So far, I've searched the web, found some solutions but none are really working.
Here's the script I found :
set myFolder to findFolder()
tell application "Finder" to set myFiles to files of myFolder as alias list
repeat with aFile in myFiles
set bName to my baseName(aFile)
tell application "Finder"
set folderExists to exists folder bName of myFolder
if not folderExists then make new folder at myFolder with properties {name:bName}
move aFile to folder bName of myFolder
end tell
end repeat
---------------- HANDLERS ----------------
on baseName(myFile)
tell application "System Events" to set {fileName, fileExt} to {name, name extension} of myFile
return text 1 thru ((get offset of "." & fileExt in fileName) - 1) of fileName
end baseName
on findFolder()
activate application "SystemUIServer"
-- Bug pointed out by Lauri Ranta http://www.openradar.me/9406282
tell application "Finder"
activate
set mySelection to (get selection)
if mySelection ≠ {} then
set mySelection to first item of (get selection)
if mySelection's class = folder then
set currentFolder to mySelection
else if mySelection's class = document file then
set currentFolder to parent of mySelection
else if mySelection's class = alias file then
set currentFolder to original item of mySelection
end if
else
set currentFolder to target of front Finder window
end if
end tell
return (currentFolder as alias)
end findFolder
And here's a page where they explain how to use automator and the Services to do what I <allmost> want, with some adaptation.
But it still doesn't work.
http://hbase.net/2011/08/17/move-selected-files-into-a-new-folder-using-applescr ipt-and-automator/
So if anybody has an idea n how I could do this ?
It It could either be a folder action (I drag and drop the files into a folder and boom, they get their folder around them)that I would set on a folder on a network drive, or locally, it doesn't matter, or a service (right clic on the file and boom folder around it.
So if anyone could help with this I'd be grateful...Hi,
Make an Automator Service (Service receives selected "Files or Folders" in the "Finder.app").
Use this script in the "Run AppleScript" action:
on run {input, parameters}
tell application "Finder"
repeat with aFile in input
if class of (item aFile) is not folder then
set {tName, fileExt} to {name, name extension} of aFile
if fileExt is not missing value and fileExt is not "" then
set tName to text 1 thru -((count fileExt) + 2) of tName
tell (get container of aFile)
if not (exists folder tName) then make new folder at it with properties {name:tName}
move aFile to folder tName
end tell
end if
end if
end repeat
end tell
end run
This script work on files with a name extension. -
Use AppleScript or Automator (or both) to get Mail and add to a text file?
Hello all,
I'm sorry if this is a duplicate of a well-known topic, I tried searching and couldn't see anything.
I'm behind a proxy at work that blocks any kind of webmail access, but I'd like to be able to check my email while on a break or something.
I had the idea that I could use Automator or Applescript to check my mail, get the new messages and add the text to a textfile that I could host on my personal webserver that I use for family stuff.
I've tried an automator workflow that seems to work while in Automator, but when I save it as an application, it won't even start Mail to check.
I also thought of just leaving mail running, and have a rule that starts a script when new mail arrives, but I don't know enough about Applescript to do it.
I don't want to confuse anyone with the details of my convoluted ideas, so I'll leave it at that.
Is there a way to do this? I want mail to check the server, download the messages, new messages get their text appended to a text file that's stored in my webserver's directory (same computer) that I can access from the web, and have it repeat every 5 minutes or so.
If I've left out a detail, let me know, and if I'm just stupid and there's an easy way to do this... be kind.
Thanks!
aeix
iMac G5 2.0 GHz Mac OS X (10.4.6)It certainly is going in the right direction. I'm not all that versed in AppleScript, but it looks like that particular script is creating a new text file for every message processed.
I would like to either create a specific text file if it doesn't exist, or append the text to the end of the file if it does exist.
But like I said, definitely heading in the right direction!
iMac G5 2.0 GHz Mac OS X (10.4.6) -
Whenever I leave my macbook unplugged with my external hard-drive plugged in and the battery power runs out, my computer "dies" and my external hard-drive is not ejected properly, sending me a warning that data may be lost if not ejected properly. This has happened on several occasions.
Is it possible to program my external hard-drive to eject itself when my computer is running low on battery power so I do not have to worry about losing data from being ejected misproperly?
My system specs:
Model Name: MacBook
Model Identifier: MacBook1,1
Processor Name: Intel Core Duo
Processor Speed: 2 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache: 2 MB
Memory: 2 GB
Bus Speed: 667 MHz
Boot ROM Version: MB11.0061.B03
SMC Version (system): 1.4f12
Sudden Motion Sensor:
State: Enabled
I'm using a WD Passport 250 GB notebook external hard-drive.
Note: I use my external for time machine as well as for storing my entire iTunes library to free space on my macbook.Alright, after trying stuff for some irritating hours, I think I've got something you can use. I haven't figured out how to get it to run all the time.
(I must be an idiot becuase I can't find where to upload this file)
Automator application
Run Shell Script (ignore this actions input)
ioreg -n AppleSmartBattery -r | awk '$1~/Capacity/{c[$1]=$3} END{OFMT="%.2f%"; max=c["\"MaxCapacity\""]; print (max>0? 100*c["\"CurrentCapacity\""]/max: "?")}'
Set Value of Variable
Variable: new variable... (I called it Battery Life)
Run AppleScript
on run {input, parameters}
if input is less than "3.00" then tell application "Finder" to eject (every disk whose ejectable is true and local volume is true)
return input
end run -
Exporting from Keynote 08 using applescript or automator
Hi
Does anyone have a method for triggering an export from applescript of an open keynote presentation, I have an action that takes a sequence of images (exported slides) sorts and loads into an new presentation and I would like to then export as .ppt
This allows the sad ppt user to see the slides perfectly formed (and stops them editing and stealing my ideas). However the last step of the export I have to do manually as I cant see any actions in automator or anything in the applescript dictionary.
Any ideas
thanks
JonI have exactly the same question. I have been experimenting with AS. I found some code that almost works, but it won't select the PDF button. The sheet with the buttons is obviously not a radio button group, and I can't work out what it is.
tell application "Finder"
set draggeditems to (choose file)
repeat with thisFile in draggeditems as list
tell application "Finder" to reveal item thisFile
set thisFile to thisFile as alias
tell application "Keynote" to open thisFile
tell application "System Events"
tell application process "Keynote"
set frontmost to true
if menu item "Hide Inspector" of menu 1 of menu bar item "View" of menu bar 1 exists then
keystroke "i" using {command down, option down}
end if
click menu item "Export…" of menu 1 of menu bar item "File" of menu bar 1
repeat until sheet 1 of window 1 exists
end repeat
tell sheet 1 of window 1
click button "PDF" of radio group 1
click checkbox "Include slide numbers"
click checkbox "Include date"
click checkbox "Print each stage of builds"
click button "Next…"
end tell
repeat until button "Export" of sheet 1 of window 1 exists
end repeat
tell sheet 1 of window 1
click button "Export"
end tell
delay 3
keystroke "w" using command down
end tell
end tell
end repeat
end tell -
Is using Excel through Automation with Java possible ?
Hi, I'm currently a Visual Basic developper thinking of moving to a java based RAD technology.
For a couple projects, I need to generate Excel Spreadsheets and present them to the user. I usually do this in VB by using the COM object provided by Excel, instancing it and using the Range([cellname]).value property to write data in the sheet.
Is their any way to do a similar thing in Java, or does this level of comfort come solely by using a Microsoft developpement product (thus more integrated with office) ?
Thanks in advance.1. Writing java functions in MS Visual J++ 6.0, instead of in MS VB, and then compiling as a COM function has been the only way I've been able to mix the convenience of spreadsheet IO (alas, still in Excel) with the powerful functions we can write in Java.
2. It's ironic java programmers must still build IO interfaces in their IDEs every time they want to write & use a new java function, while MS has made user-written VB functions available to all Excel users (even to MS Word users). Last time I looked, the Star Office speadsheet only allows writing functions in ersatz VB (Sun Basic) instead of in Java.
3. To Sun: Please make java available to the masses by giving us a spreadsheet that runs user-written java functions. The spreadsheet is the most powerful programming paradigm around. Remember when Lotus made a zillion $? You can make more money from Gates's vision than by imitating his products.
- Bill Ellis [email protected] -
Use applescript w/automator to change files permissions
Hi, I need to change permission to several files to Read and Write to the Owner, Staff and everyone. I do this everyday, that's why I need someway to automate this action. I don't know about scripting but I do know (more or less) how to create a service in Automator. I am looking to create a service in automator which runs an applescript that changes this file's permissions. I need this to be applied to all sub folders and subfiles. Any clue what the applescript should say? Thnx
Perfect! It worked perfectly even though I didn't understood the difference between the first shell script and the other. I've tried both, and they both did the same thing: They changed the Owner, the Staff and Everyone to Read and write.
For my tests, this is what I did (for the sake of all the non geeky guys like me who needs this):
I opened Automator and choose to make a Service, and set it to Files and Folders in Finder.
Then I added the finder action "Get selected finder items".
Then added "Run shell script" and did what you told me, and that's it!
Thanx for your time -
Can Applescript or Automator be used to keep Character Viewer open?
Since the upgrade to Mavericks the behaviour of the Character Viewer has changed, where it no longer 'sticks' (stays both active and on top) as a visible window when you switch applications: now it needs to be called up from within each application, and will be visible when working with that app.
Is it possible to use Applescript or Automator (which I don't yet know how to use), to make the Character Viewer always stay open and visible while switching between and using any application, in effect restoring the way it worked before Mavericks?
Thanks.
(This question relates to one I asked here. It will be some time before I can access the computer in question and try the solution suggested there specifically for Word – my interest here is in finding out if it is possible to get the old Character Viewer behaviour back using Automator or Applescript.)Thanks for that suggestion too. Please let me know if you do try and succeed; I'm not sure I have the knowledge.
In fact, in looking on my system I can find no .plist file with CharViewer in it, and it's not obvious any of the .plist files are related. I did find in the system library:
Macintosh HD/System/Library/PreferencePanes/Keyboard.prefPane
I don't seem to have a Library folder in my Home folder anymore (since Mavericks?). It looks like it now resides at Macintosh HD/Library.
In the MacHD/System/Library there is an interesting folder: Input Methods. This is empty in MacHD/Library/Input Methods, but full of the following applications in System/Library/Input Methods (see screenshot). The first two look relevant. But I really don't know what I'm doing. -
Mounting a network share via Applescript or Automator causes errors in MS Office apps
If I connect a network share using an automated process, either using Applescript or Automator, though the share shows up on the Desktop and I can open it and view the various folders and files, MS Office apps including Powerpoint, Excel and Word are unable to open the files. Each gives a slightly different error message. In Excel, it looks like this:
In Word, it's:
In Powerpoint, it's:
BUT, if I connect to the server share manually (using Cmnd-K in Finder), all files and folders are properly accessible. I cannot see any differences between the shares connected by the two different means on the Desktop. They have the same name, are the same size, etc.; in short, everything about them seems identical. I even took screen shots of the Get Info page from one of them connected by the different methods:
"home" connected by Automator:
and connected manually:
Does anyone have any ideas as to why this is happening or how to fix it?I had the same issue. After upgrading kernel to 3.4.5 today the cifs share mounted with original fstab settings. I believe it was caused by this bug:
kernel changelog wrote: The double delimiter check that allows a comma in the password parsing code is
unconditional. We set "tmp_end" to the end of the string and we continue to
check for double delimiter. In the case where the password doesn't contain a
comma we end up setting tmp_end to NULL and eventually setting "options" to
"end". This results in the premature termination of the options string and hence
the values of UNCip and UNC are being set to NULL. This results in mount failure
with "Connecting to DFS root not implemented yet" error. -
Hello.
I would like to search for specific online сhеss games. Each game has a single adress. We are talking about millions of games. Obviously, it's far too long to index all the games. So I will set a limit and use the script at night. Conditions should be something like this:
For adress example.com/game=NumberA to example.com/game=NumberB
Search every web page containing SpecificWord
Store wanted web adresses somewhere (so I could see the games by myself during the day)
As you can see, I know nothing about Applescript and I don't know how to start, nor how the script can pick up adresses. I think it's possible and not difficult to code, just time consuming for the program to search through thousands of games.
Should I use AppleScript or Automator? Should the script open Safari (or Firefox if possible) or can it search without any browser? Is it possible to simultaneously search through multiple pages/adresses? Maybe I could write several scripts for different ranges of games? If so, how many pages can I open at once? For instance I could disable images in Firefox to load quicker. How much time does it need to search for one game? 1, 2, 3, 4, 5 seconds?
Any easy tutorials, examples of similar codes, advices, hints or tips are appreciated.Thanks for answering. Sorry that I was so unclear. My main problem was how to get urls and games id as variables. But then I thought there already should be programs doing web crawling. I have found Scrapy which use Python language.
(Maybe I should edit my question, add Scrapy and Python as tags instead of applescript and automator. Is it possible?)
I have Mac OS 10.6.8, Python 2.6.1. Scrapy needs at least Python 2.7 so I have downloaded the last version of Python (3.3). I think I can handle the programming in Scrapy thanks to their tutorial. The most difficult part should be... how to install Scrapy. Don't laugh at me.
I have entered "sudo easy_install Scrapy" in the terminal. But the terminal still uses Python 2.6.1. Python 3.3 is installed but I don't know how to clean update Python. If anyone knows, feel free...
When I write scrapy in the terminal, here is what I get:
Traceback (most recent call last):
File "/usr/local/bin/scrapy", line 4, in <module>
import pkg_resources
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg _resources.py", line 2556, in <module>
working_set.require(__requires__)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg _resources.py", line 620, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg _resources.py", line 518, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: lxml
It seems Scrapy also needs something called lxml. Right now I am trying to make Python 3.3 the default python version. Is there a web crawler GUI which already includes Python, Scrapy, lxml?
By default I also have Python 2.4 and 2.5. Does the system need them? I prefer not to delete system files but together all Python versions weigh 500 MB.
In regard to the real example URL: let's say instantchess.com. Here's a game URL: http://www.instantchess.com/?EXP=1&GPI=84094532
84094532 is the game id. Let's say I want to search every Reti openings (thus the page must contain the word "Reti") from id 84000000 to 85000000 and store games id in my computer. If I have understood correctly, I need to search through the source code of the pages.
Feel free to add any remarks, suggestions, ideas. -
Using applescript to react to a application error
Hey, my friends
I want to using applescript to handle with some application error. For example, I send a iMessage to my friend for the first time, after a while the Message application may return a messagebox said that he is not using iMessage service. And I want my computer say it out loud using "say" script. How can I do that? Or is that impossible?
There might be a way by using some error log file belongs to the application from which I want to be notified if an error happend. But I don't know where I can find those log files.
Any ideas?
Thanks!
Qiu.I'd figure out how to do the shutdown from the command line. You then should be able to do this from an applescript.
There is some way of initiating an apple script on a remote machine but I do not know how.
What OS is the remote server using?
Robert -
ICal and subscribed calendars with MobileMe using AppleScript
I am having the same problem as many of you; I have a MobileMe account which does not sync the calendars I have in iCal that are subscriptions. I found this great script online which I'll post below. I don't know anything about AppleScript so I'm just copy-pasting. I want it to work, but I'm getting the error "The variable theOldEvent is not defined." right around the line "if similar_found is true then set theOldSummary to the summary of theOldEvent" kinda near the middle. Like I said, I don't know anything about AppleScript. So my question is; how can I fix this error and/or is there some better way of using AppleScript/Automator to do this same thing? Thanks!
Script to duplicate Calendar orgCalendar into target dupCalendar
E.H. 12.9.2008
property myCopies : 0
property myUpdates : 0
property myObsoletes : 0
property orgCalendar : "Sekretariat"
property dupCalendar : "Sekretariat copy"
property dupEvents : {}
property myDeletes : {}
set myCopies to 0
set myUpdates to 0
set myObsoletes to 0
set dupEvents to {}
tell application "iCal"
-- set theCalendars to every calendar
set theCalendarNames to title of every calendar
set theOrgCalendar to a reference to calendar orgCalendar
if theCalendarNames contains dupCalendar then
set theCalendar to a reference to calendar dupCalendar
else
set theCalendar to make new calendar with properties {title:dupCalendar}
--set theCalendar to make new calendar with properties {title:dupCalendar, color:"{65535, 0, 0}"}
end if
set the eventList to uid of every event of theOrgCalendar as list
set the eventCount to the count of the eventList
repeat with theUId in eventList
tell theOrgCalendar
set theEvent to (the first event whose uid is theUId)
-- set theProperties to the properties of theEvent as record
set theDate to the start date of theEvent
set theSummary to the summary of theEvent
set theStampDate to the stamp date of theEvent
end tell
tell theCalendar
try
set theOldEvent to (the first event of theCalendar whose (start date) is theDate as date)
set similar_found to true
on error
set similar_found to false
set theEndDate to the end date of theEvent
set theAllDay to the allday event of theEvent
set theLocation to the location of theEvent
-- Funny construction to work araund the fact that location may be missing a value
try
if theLocation is equal to "" then
end if
on error
set theLocation to ""
end try
set theDescription to the description of theEvent
try
if theDescription is equal to "" then
end if
on error
set theDescription to ""
end try
if theAllDay is true then -- work around a funny bug with all day events
set theDate to (theDate as date) + 2 * hours
set theEndDate to (theEndDate as date) + 2 * hours
end if
set newEvent to make new event at end with properties {summary:theSummary, location:theLocation, start date:theDate, end date:theEndDate, allday event:theAllDay, description:theDescription}
-- make new event at end with properties theProperties
set the end of dupEvents to (the uid of newEvent)
set myCopies to (myCopies + 1)
end try
end tell
set second_necessary to false
if similar_found is true then
set theOldSummary to the summary of theOldEvent
if theSummary is not equal to theOldSummary then
--is there a different one?
try
set theOldEvent1 to (the second event of theCalendar whose (start date) is theDate as date)
set theOldSummary to the summary of theOldEvent1
if theSummary is equal to theOldSummary then
set theOldEvent to theOldEvent1
set the end of dupEvents to (the uid of theOldEvent)
else
-- cycle repeat ?
end if
on error
-- beep
try
set theEvent1 to (the second event of theOrgCalendar whose (start date) is theDate as date)
set second_necessary to true
on error
set the end of dupEvents to (the uid of theOldEvent)
end try
end try
else
set the end of dupEvents to (the uid of theOldEvent)
end if
if second_necessary is true then
set theEndDate to the end date of theEvent
tell theCalendar
set theOldEvent to make new event at end with properties {summary:theSummary, start date:theDate, end date:theEndDate}
end tell
set the end of dupEvents to (the uid of theOldEvent)
end if
set theOldStampDate to the stamp date of theOldEvent
if theStampDate is greater than theOldStampDate then
-- update the event
set summary of theOldEvent to theSummary -- capitalization may have changed
set theAllDay to the allday event of theEvent
set allday event of theOldEvent to theAllDay
set theEndDate to the end date of theEvent
if theAllDay is true then -- work around a funny bug with all day events
set theEndDate to (theEndDate as date) + 2 * hours
end if
set end date of theOldEvent to theEndDate
set theDescription to the description of theEvent
try
if theDescription is equal to "" then
end if
on error
set theDescription to ""
end try
set description of theOldEvent to theDescription
set myUpdates to myUpdates + 1
end if
end if
end repeat
end tell
-- Delete obsolete events
set myObsoletes to 0
set myDeletes to {}
tell application "iCal"
set myUIDs to uid of events of theCalendar
end tell
repeat with myUID in myUIDs
if dupEvents does not contain myUID then
set the end of myDeletes to myUID
set myObsoletes to (myObsoletes + 1)
end if
end repeat
tell application "iCal"
repeat with myDel in myDeletes
delete (every event of theCalendar whose uid is myDel)
end repeat
end tell
-- delete duplicates
set myDeletes to {}
tell application "iCal"
set myStarts to start date of events of theCalendar
set mySummaries to summary of events of theCalendar
set myUIDs to uid of events of theCalendar
set myLength to length of myUIDs
end tell
repeat with i from 1 to (myLength - 1)
set thisStart to (item i of myStarts)
set thisSumm to (item i of mySummaries)
repeat with j from (i + 1) to myLength
set thatStart to (item j of myStarts)
set thatSumm to (item j of mySummaries)
if thisSumm is equal to thatSumm and thisStart is equal to thatStart then
set the end of myDeletes to (item j of myUIDs)
exit repeat
end if
end repeat
end repeat
set n to count of myDeletes
tell application "iCal"
repeat with myDel in myDeletes
delete (every event of theCalendar whose uid is myDel)
end repeat
-- set the visible of calendar theCalendar to false
end tell
display dialog (myCopies & " records duplicated, " & myUpdates & " records updated and " & myObsoletes & " obsolete ones deleted") as textNo longer an issue.
-
Using Automator with Disk Utility
I'm new to using Automator. I want to create a work flow with Disk Utility but is doesnt appear in the applications list. How do I make Disk Utility work with Automator?
If a program doesn't appear in the list, that means that Apple hasn't written actions for it yet.
You can still use Automator with Disk Utillity, but you will need to use Applescript and the 'Run Applesript' action to operate Disk Utillity.
Unfortuately the 'how' is beyond my knowledge, and the scope of this post. -
Using applescript to open a folder with a keyboard shortcut
hello -
i have a rather simple question (probably). is there a way using applescript to create a keyboard command to open a folder? i.e. command shift a opens the applications folder and command shift u opens utilities. can i use applescript to designate a keyboard command to open a folder i have created? also, the script editor does not have to be open for me to utilize scripts, correct?
thanks for your patience with a newbie.You can't make a keyboard shortcut to run a specific application from OSX, although there are third party applications such as Quicksilver that can do things like that. You can use an AppleScript to activate an existing menu item, for example:
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #FFDDFF;
overflow: auto;"
title="this text can be pasted into the Script Editor">
tell application "Finder" to activate
tell application "System Events" to tell application process "Finder"
keystroke "A" using {shift down, command down}
end tell</pre>
Other alternatives to keyboard shortcuts are to use the Scripts Menu or add an application to the Finder's toolbar. The Script Editor does not need to be active to use scripts.
Maybe you are looking for
-
Transferring Video to iPhone 4
Hi, I am using iPhone 4 since last couple of days ONLY. I have transferred music through iTunes but couldnt transfer Videos. I see some imported videos on my iTunes that can be transferred but not others.I cannot use iPhone as an USB. Is it the limit
-
Date format when running in Mexico vs US
When using RS 2005. I have a report that I developed in the US and runs on a server in the US. I can create a subscription with no problems. When our region in Mexico trys to create a subscription it gives an error on the date selections because
-
What does "Sorry, delivery dates not available right now." mean?
I am trying to order a TV and I keep getting this error message. Does this mean that the TV is completely out of stock in my area or does this mean that the TV delivery team is completely booked for the foreseable future? I tried another zip code i
-
Hi, I want to Maintain MM ( GR Document ) number ranges for the fiscal year 2010 - 2011 . Can we do it ? Wats the procedure ? Regards Rajesh
-
Urgent- Zen X-Fi not switching on even when plugged in
I left my Zen X-fi in the glove box of my car for two nights and when I retrieved it today it will not switch on, even when plugged into the computer via USB or through my mains adaptor . I have tried using the reset button and tried to recovery it u