• 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: Selecting a folder from the sidebar in a save dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selecting a folder from the sidebar in a save dialog


  • Subject: Re: Selecting a folder from the sidebar in a save dialog
  • From: Jim Brandt <email@hidden>
  • Date: Thu, 20 May 2010 14:21:52 -0500

For the record, I found this for myself through trial and error, in case anyone is following this:

set nil to ASCII character 0
set nil_code to nil & nil & nil & nil
tell application "Finder"
set creator type of alias theFile to nil_code
set file type of alias theFile to nil_code
end tell

sets the creator type and file type of file theFile to "missing value"

This allows Launch Services to use it's normal means to open the file when it is double-clicked.

Thanks for the responses.

Jim

On May 18, 2010, at 6:39 PM, Jim Brandt wrote:

So, question one is this; is there a way to set the file type and  

creator type of a file to "missing value" once they are set to some  

other value? I tried to set them both to an empty string (tell app  

"Finder" to set creator type of file myfile to "") but got an error  

(don't remember the number or message). What is the value that causes  

file info to return "missing value" for the creator type and file type?


 _______________________________________________
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

  • Prev by Date: Re: Tell application variable for remote service
  • Next by Date: Re: BBEdit scratchpad?
  • Previous by thread: Re: Selecting a folder from the sidebar in a save dialog
  • Next by thread: Scripting Bridge usage, iPhoto example
  • Index(es):
    • Date
    • Thread