| Vorheriges Thema anzeigen :: Nächstes Thema anzeigen   | 
	
	
	
		| Autor | 
		Nachricht | 
	
	
		Skeeve •---->
  
  
  Anmeldedatum: 20.04.2006 Beiträge: 1067
 
  | 
		
			
				 Verfasst am: 02.06.2008 - 10:15    Titel: appMaker | 
				     | 
			 
			
				
  | 
			 
			
				Kleines Hleferlein um aus einem Script/Shellexecutable, das kein Terminalfenster benötigt, eine .app zu erstellen.
 
 	  | Code: | 	 		   --
 
-- appMaker © 2008 by Skeeve
 
-- appMaker.question.Skeeve at xoxy dot net
 
--
 
-- Drag & Drop eines Shell-Scripts
 
-- oder "shell executables" auf appMaker
 
-- erzeugt ein doppelklickbares Programm-Bundle
 
-- auf dem Desktop
 
--
 
-- ToDo:
 
-- Droplet erstellen.
 
--  
 
property target : "~/Desktop"
 
property directory : "MyScript"
 
 
on run
 
   tell me to open {choose file}
 
end run
 
 
on open an_item
 
   -- Nur eine Datei?
 
   if (count of an_item) ≠ 1 then
 
      display alert "Nur eine Datei bitte!" as critical
 
      error -128
 
   end if
 
   set an_item to first item of an_item
 
   -- Informationen holen?
 
   set information to info for an_item
 
   -- Verzeichnisse sind unzulässig
 
   if folder of information then
 
      display alert "Bitte keine Verzeichnisse!" as critical
 
      error -128
 
   end if
 
   -- Ausführbar muß die Datei auch sein
 
   try
 
      do shell script "test -x " & quoted form of POSIX path of an_item
 
   on error
 
      display alert "»" & (POSIX path of an_item) & "« ist keine ausführbare Datei" as critical
 
      error -128
 
   end try
 
   set appname to name of information
 
   -- Extension vorhanden?
 
   if name extension of information is not missing value then
 
      -- Aber bitte nicht .app!
 
      if name extension of information is "app" then
 
         display alert "app ist keine unterstützte extension" as critical
 
         error -128
 
         
 
      end if
 
      -- Extension abschneiden
 
      set l to length of name extension of information
 
      set appname to text 1 thru (-2 - l) of appname
 
   end if
 
   -- appname vervollständigen
 
   set appname to target & "/" & (quoted form of appname) & ".app"
 
   -- Zielverzeichnis vervollständigen
 
   set dir to appname & "/Contents/Resources/" & quoted form of directory
 
   -- Los geht's
 
   -- 1. Compilieren
 
   -- 2. Verzeichnis anlegen
 
   -- 3. Kopieren
 
   do shell script "osacompile -o " & appname & " -e " & quoted form of ("
 
      on run
 
         do shell script quoted form of ((posix path of (path to resource \"" & directory & "\")) & (\"" & name of information & "\"))
 
      end") & ";
 
      mkdir " & dir & ";
 
      cp " & (quoted form of POSIX path of an_item) & " " & dir
 
end open
 
 | 	 
  _________________ "All problems are solved in slightly less than half an hour" (Chumbawamba, "Hey Hey We're The Junkies") | 
			 
		  | 
	
	
		| Nach oben | 
		 | 
	
	
		  | 
	
	
		Peppe89 •->
  
 
  Anmeldedatum: 21.06.2019 Beiträge: 10
 
  | 
		
			
				 Verfasst am: 08.10.2019 - 18:11    Titel:  | 
				     | 
			 
			
				
  | 
			 
			
				Nutzen Sie die Möglichkeiten eines Bonus ohne Einzahlung. Dies ist der beste Weg, Rubel aus der Halle kostenlos zu erhalten, nur um ein Konto in Russland zu eröffnen oder für andere einfache Aktionen bonus code bwin https://maxfunsportsreport.com/bwin/ !
  Zuletzt bearbeitet von Peppe89 am 25.12.2020 - 07:22, insgesamt einmal bearbeitet | 
			 
		  | 
	
	
		| Nach oben | 
		 | 
	
	
		  | 
	
	
		newart •->
  
 
  Anmeldedatum: 11.04.2020 Beiträge: 1
 
  | 
		
			
				 Verfasst am: 14.08.2020 - 09:03    Titel: casino game | 
				     | 
			 
			
				
  | 
			 
			
				| I saw MrGreen's house at https://www.gamebestspinswelcome.com and just right in, I had had a stash of different video games. Some of which include Mr environment-friendly online roulette, Mr eco-friendly real-time blackjack 1,2,3 at the blackjack lobby, book of Leo, discovering Mr green, hammer of lot of money, imperial gems and also the roulette live beyond life. In total, there are about 1000 video games in his pc gaming gallery and has actually arranged his video games into various categories like top-rated, brand-new games, slots, green exclusives, jackpot video games, Las vega slots, live gambling enterprise, table games, and instant success. I wish you win the club royale benefit. Need I claim this: I understand you're curious to learn, so, go down the suspense dive right into it! There's a lot waiting for you! | 
			 
		  | 
	
	
		| Nach oben | 
		 | 
	
	
		  | 
	
	
		drdater •->
  
 
  Anmeldedatum: 25.05.2020 Beiträge: 1
 
  | 
		
			
				 Verfasst am: 24.12.2020 - 23:25    Titel:  | 
				     | 
			 
			
				
  | 
			 
			
				| Wenn Sie Ihre Arbeit mit hoher Qualität erledigen möchten, um sich in Zukunft zuverlässig zu fühlen, stehen Ihnen die Türen zur Welt weit offen https://ggbet-casino.de/ . Probieren Sie es aus und Sie werden mit einem Berg Geld zurückbleiben, und Sie werden es leid sein, Ihre Pennys herauszunehmen und sie in Ihre Tasche zu stecken. Mehr als einmal getestet. Mach einfach mit und sei vorsichtig. | 
			 
		  | 
	
	
		| Nach oben | 
		 | 
	
	
		  | 
	
	
		MatsukenDG •-->
  
 
  Anmeldedatum: 11.09.2020 Beiträge: 101
 
  | 
		
			
				 Verfasst am: 30.03.2022 - 11:39    Titel:  | 
				     | 
			 
			
				
  | 
			 
			
				| Se você quer ser feliz e esquecer a situação em que o pênis não se levanta, então eu recomendo comprar -----verboten----- comprar -----verboten----- genérico online pelo preço. Foi esse medicamento que me ajudou a resolver o problema. E fez-me feliz | 
			 
		  | 
	
	
		| Nach oben | 
		 | 
	
	
		  | 
	
	
		Nishaknapp •--->
  
 
  Anmeldedatum: 16.03.2022 Beiträge: 217
 
  | 
		
			
				 Verfasst am: 13.06.2022 - 06:56    Titel:  | 
				     | 
			 
			
				
  | 
			 
			
				| Why not settling on games that is fun and at the same time your earning. Well itll make suspense because of the game as well but dude just try it and it gave me hope while pandemic is real rn.  Here’s Why You Should Play Free Casino Games | 
			 
		  | 
	
	
		| Nach oben | 
		 | 
	
	
		  | 
	
	
		 |