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!

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

Where can I learn Applescript on the Internet for free?

The difference here is between Carbon/Classic-style file paths and Unix/Cocoa-style file paths. AppleScript always takes Carbon-style (colon-delimited) paths. So... /Users/admin/Documents/convert2mov.ffx becomes Macintosh HD:Users:admin:Documents:convert2mov.ffx (replace "Macintosh HD" with the name of your startup disk) Alternatively, you could say something like...

Software Programming & Web Scripting - Posts: 11 - Oct 24, 2005

Make StdC++ Console App Droppable?

Ok, Ctl+Right Click didn't do it so I figured display package contents was the correct choice and it seems to be: So my executable is in Contents/Resources/English.lproj I didn't put it there myself, so it must have been placed there during the Build process. Everything basically makes sense; however, the Droplet does not find exsp. The following is the relevent...

Software Programming & Web Scripting - Posts: 20 - Oct 19, 2005

Make StdC++ Console App Droppable?

I don't have this dir. I do have an English.lproj folder at the root of the project folder. This seems to be the location of the files corresponding to "Resources." I copied the compiled executable to this dir and added it to the project. It does show up under Targets/My First Droplet/Bundle Resources. This is where I'm a little confused. Does this go in...

Software Programming & Web Scripting - Posts: 20 - Oct 19, 2005

ADB Wacom Tablet

monitor support. Applescript to "renice" the daemon. ...

Hardware & Peripherals - Posts: 19 - Aug 5, 2005

Drag and Drop Shell Script

I want to create and Applescript, that I can drop a file onto. The applescript then calls a shell script on the file that I dropped. ...

Software Programming & Web Scripting - Posts: 1 - May 14, 2003


Search Engine Friendly URLs by vBSEO 3.1.0