Tag Info

New answers tagged

0

I think you could easily fix that whit a bit of applescript and "sed". I don't know how your original applescript looks like, but I assume you have a variable that contains the path /Volumes/someFolder/someFile.docx as you said, let's call that variable thePath. All you have to do is take thePath, remove /Volumes/ and add smb://Server/someParentFolder/ ...


0

You will always see the gear in the menu bar if you are using Automator. If you want it to exit quickly, create a wrapper that forks off your android script into another process, and exits.


3

The question itself isn't exact too, because the OP talks about: files names like ABC 123456 (without extension), but in the example code using *.txt extension add a dash between two blocks (e.g. where is the space) like ABC - 123456, but in the next taking about counting to 4 and count 3, e.g. not exacltly clear what the script should do for example if ...


2

If your file names are "ABC 123456" with single space between the first 3 and the following, then you are trying to replace the space with a character (or dash or something), so to look like ABC-123456. I found this article that explains how to do that. Example: Note that the following command will only replace spaces with hyphens. If you need a different ...


1

On OS X Yosemite you should add the script in: /Library/LaunchDaemons using this name for the script: com.mysql.mysql.plist and this content: <!--?xml version="1.0" encoding="UTF-8"?--> <plist version="1.0"> <dict> <key>KeepAlive</key> <dict> <key>SuccessfulExit</key> ...


0

Try searching for and adding a Get Specified Finder Items action before your Get Folder Contents actions. This allows you to select the folder of which you would like to get and sort the contents. Hope this helps!


1

You have a couple of errors on your syntax. Replace the following lines: pages=`pdfcount "$f"` pagescut=`$(( ${pages} - 1 ))` With this ones: pages=$(pdfcount "$f") pagescut=$(($pages - 1))


0

tell application "Mail" set theSubject to "Subject" -- the subject set theContent to "Content" -- the content set theAddress to "xxx@163.com" -- the receiver set theSignatureName to "signature_name"-- the signature name set theAttachmentFile to "Macintosh HD:Users:moligaloo:Downloads:attachment.pdf" -- the attachment path set msg to make new ...


1

You will want to run it through Apple Script and iTerm. tell application "iTerm" make new terminal tell the current terminal activate current session launch session "Default Session" tell the last session write text "unison /folder1 /folder2" end tell terminate the last session end tell end ...


0

Following code … for arg in "$@"; do dir=$(cd -P "$(dirname "$arg")" && pwd)/ || continue /usr/local/bin/mpc add "${dir#"$HOME/Music/"}$(basename "$arg")" done does the trick.


-3

If you're wondering how to create a new automator service check out http://www.hongkiat.com/blog/customize-mac-right-click-menu/


-1

If you replace the "Display Webpages" task with a "Run AppleScript" task you can control what it does (i.e. add a delay)... I've posted sample code here: https://discussions.apple.com/message/27244343?ac_cid=op123456


0

You can use an application like Power Manager to automate the launching of iTunes and subsequent quitting at 5am. Launching iTunes Launching an application can be achieved with the built-in Launch an application daily task: Quitting iTunes For quitting iTunes at 5:00, I would use the Run a script daily task to perform the following AppleScript snippet: ...


0

It's an expensive option (36$), but Keyboard Maestro can do this. Whether you are a power user or a grandparent (or both!), your time is precious. So why waste it when Keyboard Maestro can help improve almost every aspect of using your Mac. Even the simplest things, like typing your email address, or going to Gmail or Facebook, launching Pages, ...


0

Gists on github are a great way to do that. Or just share the repo that contains the file on github.



Top 50 recent answers are included