|
|
Using AppleScript to copy a file name?
|
|
|
|
Senior User
Join Date: May 2000
Location: Lafayette, IN, USA
Status:
Offline
|
|
Hey there. I just got a new G5 at work where, up until now, there hasn�t been a Mac for about a decade. Anyway, I discovered the hard way that graphics copied into a FileMaker Pro database by a Windows-based machine do not show up on a Macintosh, so I need to update over 10,000 photos. The easiest way to do this involves passing a file name to a FileMaker script which, of course, involves copying said file name to the clipboard.
Does anyone know how to do this?!?
Thanks!
|
“The trouble with quotes on the Internet is that you can never tell if they’re attributed to the right person.”
—Abraham Lincoln
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
Code:
tell application "Finder"
set the clipboard to the name of someFile as string
end tell
...where someFile is, obviously, some file.
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
|
|
|
|
|
|
|
Senior User
Join Date: May 2000
Location: Lafayette, IN, USA
Status:
Offline
|
|
I was missing the �as string��. It�s always something ridiculously simple, ain�t it?
Thanks!
|
“The trouble with quotes on the Internet is that you can never tell if they’re attributed to the right person.”
—Abraham Lincoln
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|