• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: finder script failing on some macs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >finder script failing on some macs (From: John elemans <email@hidden>)

  • Prev by Date: finder script failing on some macs
  • Next by Date: Re: Applying permissions to all files in all subfolders
  • Previous by thread: finder script failing on some macs
  • Next by thread: [OFFTOPIC] does anyone feel like giving me some perl assistance off list?
  • Index(es):
    • Date
    • Thread