image
image

Applescript Posix

We have the answer for Mac Support. Below you will find related Tech Support questions and Forum Post/Threads for Applescript Posix.

Just Register and Ask!

Using Applescript to open a file

all you have to do is set the correct path. I too, wish to use applescript to open files. Suppose I made an application with applescript that has a second application nested inside its package contents. ...

Mac OS X System & Mac Software - Posts: 5 - Apr 15, 2009

[AppleScript] Duplicate files with timestamp

Apple's AppleScript Language Guide is useful, but it's not a tutorial or a quick start guide. It's really about the more arcane aspects of AppleScript. ...

Apple Scripts - Posts: 21 - Feb 21, 2009

How to unlock a locked file

I'm not sure how to do it in straight C, but you can do it via AppleScript like this:tell application "Finder" set the locked of file "Mac HD:path:to:file" to false end tellOr if you want to use Unix-style paths instead of HFS-style paths, like this:tell application "Finder" set the locked of file (posix file "/path/to/file") to false end tell You can also use the...

Software Programming & Web Scripting - Posts: 4 - Nov 18, 2008

Using Applescript to open a file

Hi Ewar, You don't even need to bring up the finder to open files using AppleScript, it can be all done in the background with code like follows: set filepath to POSIX path of "DandyDisk:Users:martin:Desktop:test.ppt" try set command to "open " & quoted form of filepath do shell script command end try

Mac OS X System & Mac Software - Posts: 5 - Oct 11, 2008

Cause an arbitrary Unix command to be invoked when opening a file

Not directly (AFAIK), but there are possible workarounds. I've done something like that with AppleScript. It requires making a script applet, and then setting the file to open with that applet. The applet in turn launches the desired unix command. The AppleScript code is simple: on open {x} tell application "Terminal" do script "/usr/local/bin/bonzo " & quoted form...

Mac OS X System & Mac Software - Posts: 2 - Sep 7, 2008

New Finder given path (Carbon C++)

AppleScript takes paths in the classic Mac OS format, but if you need to pass it a Unix-style path, you can convert it from within AppleScript like so: tell application "Finder" activate open folder POSIX file "/path/to/folder" select item "filename" of window 1 end tell

Software Programming & Web Scripting - Posts: 4 - Feb 13, 2008

Automating photo-imports

You could ... 01. Select and copy the lines of code below. set {tDisk, cr2_Ext, jpg_Ext} to {"EOS_DIGITAL", "CR2", "JPG"} property hFolder : (POSIX path of (path to home folder) as string) tell application "Finder"

Mac OS X System & Mac Software - Posts: 2 - Jan 3, 2008

HFS path in Terminal?

As far as I know, there's no simple way to do that. There are some complicated ways, though. :) I often need to convert paths from one type to another with AppleScript, where it's fairly easy: return POSIX path of file "Macintosh HD:Users" --returns "/Users" ...and the reverse... return posix file "/Users" --returns file "Macintosh HD:Users" You can embed...

Unix & X11 - Posts: 2 - Oct 9, 2007

Automate process list of PDF downloads

Based on 'Alternatively I could save the PDF's for later printing.'. Partial sample code, to download a list of '.pdf' hypertext links. -- AppleScript code begins here -- set pdf_URLs to {"http://apps.irs.gov/pub/irs-pdf/i1099h.pdf", "http://apps.irs.gov/pub/irs-pdf/i1099sa.pdf"} -- Path of 'PDFs' folder (directory) - to be created, and downloaded '.pdf' files...

Mac OS X System & Mac Software - Posts: 2 - Apr 19, 2007

Move Selected Files to a New Folder

'Automator' contexual menu '.workflow' code ... on run {input, parameters} try tell application "Finder" to set der_Auswahl to selection if ((count der_Auswahl) = 1) then set der_Auswahlpfad to my neuer_Pfad(POSIX path of (der_Auswahl as string)) else set der_Auswahlpfad to {}

HOWTO & FAQs - Posts: 5 - May 1, 2006


Search Engine Optimization by vBSEO 3.3.0 RC1