Re: finder script failing on some macs
Re: finder script failing on some macs
- Subject: Re: finder script failing on some macs
- From: Philip Aker <email@hidden>
- Date: Wed, 15 Aug 2007 17:38:00 -0700
On 2007-08-15, at 17:07:58, John elemans wrote:
I have a simple finder script which is failing with -1753 on some
macs but not others.
The script opens a folder on a server folume and is made like this;
sprintf((char *)script,"tell application \"Finder\"\ropen
folder \"%s\"\rend tell\r", cStudyFolderPath);
Any suggestions appreciated!
John,
sprintf( script, "tell application \"Finder\" to open folder \"%s\"",
cStudyFolderPath );
is a shorter version which should do the same thing.
However, these days it's a lot safer to use a combination of FSRef/
CFURLRef and CFStringRefs to come up with an HFS path and a script
which incorporates it.
There's not enough info to go on. What is 'script' and what is
'cStudyFolderPath'? What is the system encoding and what kind of
descriptorType are you supplying to the eventual AEDesc?
Philip Aker
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden