Re: open for access file pathstring with write permission
Re: open for access file pathstring with write permission
- Subject: Re: open for access file pathstring with write permission
- From: Jacco Rens <email@hidden>
- Date: Tue, 14 Jan 2003 20:10:39 +0100
At 6:56 PM +0100 14/01/03, Jacco Rens wrote:
hi list,
can someone give me insight why this gives an error, google doesn't
come up with an clear answer :(
Mac OS X 10.2.3
tell application "Finder"
set pathstring to ((the path to desktop) as text) & "test"
set theNote to open for access file pathstring with write permission
write "test, test" to theNote
close access theNote
end tell
You don't say what error you get, but first thing suppress the first
and last line (the "tell" wrapper). AFAIK none of the lines of your
script is intended for Finder.
oops, forgot that to mention indeed.
The error message is "Finder got an error: Can't make desktop into a
item."
I need this for creating an file with content from within FileMaker,
the scriptstep from filemaker goes like this:
global myzone
tell application "FileMaker Pro"
set ipnummer to cell "ipnummer" of current record
set {oldDelims, AppleScript's text item delimiters} to {AppleScript's
text item delimiters, "."}
set textItems to text items of ipnummer
set hostnumber1 to item 1 of textItems
set hostnumber2 to item 2 of textItems
set hostnumber3 to item 3 of textItems
set hostnumber4 to item 4 of textItems
set AppleScript's text item delimiters to oldDelims
set myzone to cell "temp" of current record
end tell
tell application "Finder"
set pathstring to ((path to desktop) as text) & "db." & hostnumber1 &
"." & hostnumber2 & "." & hostnumber3
set theNote to open for access file pathstring with write permission
write "some content" to theNote
close access theNote
end tell
Best,
Jacco Rens
Netherlands
_______________________________________________
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.