• 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: Works in Terminal, not as "do shell script"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Works in Terminal, not as "do shell script"


  • Subject: Re: Works in Terminal, not as "do shell script"
  • From: Skeeve <email@hidden>
  • Date: Mon, 05 Apr 2010 11:14:08 +0200

Mark J. Reed schrieb:
Always using full paths is good for security hut bad for portability -
So a good solution is to do something like this:

property exiftool : missing value

on run
   if exiftool is missing value
      ask_user_for_tools()
      if exiftool is missing value then return
   end if
   -- program here
end run

to ask_user_for_tools()
   -- some dialogs to get the missing information
end ask_user_for_tools

If the script is saved as a program (bundle) the properties are maintained through each run so the user is usually asked only once.
_______________________________________________
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: 
 >Works in Terminal, not as "do shell script" (From: Rob Lewis <email@hidden>)
 >Re: Works in Terminal, not as "do shell script" (From: Axel Luttgens <email@hidden>)
 >Re: Works in Terminal, not as "do shell script" (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Index a given folder
  • Next by Date: Slow Command in Snow Leopard
  • Previous by thread: Re: Works in Terminal, not as "do shell script"
  • Next by thread: Slow Command in Snow Leopard
  • Index(es):
    • Date
    • Thread