• 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: Error in the Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error in the Finder


  • Subject: Re: Error in the Finder
  • From: Mr Tea <email@hidden>
  • Date: Wed, 11 Feb 2004 22:12:54 +0000

On 11 Feb 2004, at 8.29 pm, Syllas R. wrote:

The following script works fine on a mac OS 9.x....


--- SCRIPT ----
OpenFolder("DossierDemo:flexo")
on OpenFolder(FolderName)
tell application "Finder"
activate
try
open (folder FolderName)
on error
return false
end try
end tell
return true
end OpenFolder
----- END ------


Hi, Syllas.

It sounds like your "Dossier Demo" folder was on the OS 9 desktop, and the desktop is a very different beast in OS X, where your own personal desktop is simply a folder in your user directory. To work with items in that location, you would need to change the 'open' line in your script to something like: 'open folder (((path to desktop folder) as string) & FolderName)'.

Normally, a folder path would need a colon at the end of it (to show that it's a folder, not a file) but that doesn't seem to apply here. I'm not sure why....


Regards,

Nick
pp Mr Tea
_______________________________________________
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.

  • Follow-Ups:
    • Re: Error in the Finder
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: Finding out is an Application is running
  • Next by Date: AppleScript under OS X
  • Previous by thread: Re: Error in the Finder
  • Next by thread: Re: Error in the Finder
  • Index(es):
    • Date
    • Thread