Re: Working w Filemaker and the finder
Re: Working w Filemaker and the finder
- Subject: Re: Working w Filemaker and the finder
- From: ehsan saffari <email@hidden>
- Date: Sun, 17 Mar 2002 11:38:06 -0600
On 16/3/2002 23:50:59, Duke <email@hidden> wrote:
>
I'm trying to create a process in filemaker that uses an applescript to
>
create a new folder (and sub folders) and then name that new folder with a
>
"job number" and a "project name" from the filemaker created name.
>
>
Any thoughts?
>
>
What commands do I use to "paste" a name that has been copied to the
>
clipboard from filemaker?
No need to paste anything. Here's a rough draft:
Perform AppleScript, Script Text:
tell current record
set x to cell"job number"
set y to cell "project name"
end tell
set foldName to x &"-"& y
tell application "Finder"
make new folder at desktop with properties {name :foldName}
end tell
---
Now within the just created folder, you can create subfolders
It is also necessary to check that the folder name doesn't exceed 31
Chars (for classic MacOS, don't know about OSX) and trap for the possible
error if a folder by that name exists.
hth
ehsan
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.